It is well know that the ring of invariants of the permutation group of three elemetns $S_3$ is given by the elementary symmetric polynomials, i.e. $$\mathbb C[x,y,z]^{S_3} = \mathbb C[s_1,s_2,s_3]$$ where $$s_1 = x+y+z$$ $$s_2=xy + yz + zx$$ $$s_3= xyz.$$
Which is the ring of invariants of $A_3$, the alternating subroup of $S_3$, made of even permutations?
Of course it contains $s_1, s_2, s_3$. It also contains $$d=(x-y)(y-z)(z-x).$$ They are not algebrically independent because $d^2 \in \mathbb C[s_1,s_2,s_3]$.
How can we prove that these $4$ polynomials generate the whole ring of invariants? Which is a basis of algebrically independent generators, if any?
Since $A_n$ is normal in $S_n$, the group $S_n$ setwise stabilizes the ring $R=\mathbf{C}[x_1,\dots,x_n]^{A_n}$ of $A_n$-invariants. Writing $S=\mathbf{C}[x_1,\dots,x_n]^{S_n}$ for the ring of symmetric polynomials, we claim that $R=S+S\delta$, where $\delta=\prod_{1 \leq i < j \leq n} (x_i-x_j)$ is the Vandermonde determinant.
Since $S_n$ acts via its quotient $S_n / A_n$ on $R$, there are two isotypes of $S_n$-representations that occur in $R$: the trivial representation and the sign representation. It follows that for $f \in R$ we have $$f=\mathrm{sym}(f)+\mathrm{alt}(f)$$ where we write "sym" and "alt" for the symmetrization and anti-symmetrization of $f$. Since every alternating polynomial is divisible by $\delta$, with quotient a symmetric polynomial, this proves our claim.
Now the ring $S$ of symmetric polynomials is generated by the elementary symmetric polynomials $e_1,\dots,e_n$ (see e.g. Chapter 1 of Macdonald's book Symmetric functions and Hall polynomials), so it follows that $R$ is generated by the Vandermonde $\delta$ and the elementary symmetric polynomials.
Finally, let $\mathfrak{m}$ be the ideal of $R$ generated by $e_1,\dots,e_n$ and $\delta$. Then $\mathfrak{m}$ is a maximal ideal (since the quotient by it is $\mathbf{C}$), but the elements $e_1,\dots,e_n$ and $\delta$ are linearly independent modulo $\mathfrak{m}^2$. It follows that $R$ is singular at $\mathfrak{m}$, and hence not a polynomial ring. Thus is cannot be generated by algebraically independent polynomials.