Every abelian group \(G\) can be written in its invariant factors decomposition as
\begin{equation*}
G \cong \mathbb{Z}_{d_1} \oplus....\oplus \mathbb{Z}_{d_r},
\end{equation*}
for some unique \(d_i\) such that \(d_i \mid d_{1+1}\) where \(i=1, \ldots , r-1\text{.}\) In multiplicative notation,
\begin{equation*}
G \cong \left\langle g_1\right\rangle \oplus...\oplus\left\langle g_r \right\rangle, \,\,\,\,\, |g_i| =d_i.
\end{equation*}
A diagonal action of \(G\) on \(R= \mathbb{K}[\bar x]\) is given by
\begin{equation*}
g_i \cdot x_j = \mu_i^{w_ij}x_j
\end{equation*}
for \(\mu_i \) a primitive \(d_i^{th}\) root of unity. We can encod the action in the weight matrix
\begin{equation*}
W = (w_{ij})_{ij} =
\begin{pmatrix}
\mu_{11} \amp \cdots \amp \mu_{1n} \\
\vdots \amp \ddots \amp \\
\mu_{r1} \amp \cdots \amp \mu_{rn}
\end{pmatrix}
\end{equation*}
where the rows are indexed by the generators \(g_i\) of \(G\) and the columns are indexed by the variables \(x_j\) of \(R\text{.}\)
Theorem 2.3.1.
A monomial is invariant under the action of \(G\) if an only if its exponent vector is in the kernel of the weigtht matrix \(W \text{.}\) In symbols,
\begin{equation*}
\bar x^{\bar \beta} \in R^G \iff W \bar \beta \cong (0,...,0),
\end{equation*}
where the entry in position \(i\) is computed modulo \(d_i\text{.}\)
Interpreting each row has the weight of the action of the generator \(g_i\text{,}\) we have that \(g_i\) acts trivially on the monomial \(\bar x^{\bar \beta}\) precisely when
\begin{equation*}
\mu_i^{\sum_j w_{ij} \beta_j} = 1
\end{equation*}
so \((W \bar \beta)_i =0\) modulo \(d_i\) as \(\mu_i\) is a primitve \(d_i^{th}\) root of unity.
We can use this result computationally. As the action is diagonal, the invariant ring is generated by monomials. By Noether Degree Bound we only need to examine all monomials of degree less than the order of the group
\(G\text{.}\) Then, by the theorem above, if we can sort the monomials in terms of their weigtht
\(W\bar \beta\text{,}\) then the monomials with weight
\(\bar 0\) will be invariant.