Let \(A\) and \(B\) be finite rings with the same number of elements. Assume that \(n\) is an integer \(>1\) and \(x^n=x\) for all \(x\in A\) and \(y^n=y\) for all \(y\in B\).
- If \(n=6\), prove that \(A\) and \(B\) are isomorphic.
- If \(n=4\), prove by an example that \(A\) and \(B\) need not be isomorphic.