For $n=6$ there's $\left( \begin{smallmatrix} 2 & -1\\\ 3 & -1 \\\\\end{smallmatrix} \right)$, not surprisingly. And these are the only such $n$, even if you allow rational entries instead of just integers.
Suppose that $A^n=I$ but $A^k\
e I$ for $k
For $n=6$ there's $\left( \begin{smallmatrix} 2 & -1\\\ 3 & -1 \\\\\end{smallmatrix} \right)$, not surprisingly. And these are the only such $n$, even if you allow rational entries instead of just integers.
Suppose that $A^n=I$ but $A^k\
e I$ for $k