Let $S=\left\{m \in \mathbf{Z}: A^{m^2}+A^m=3 I-A^{-6}\right\}$, where $A=\left[\begin{array}{cc}2 & -1 \\ 1 & 0\end{array}\right]$. Then $n(S)$ is equal to ______.
Hello 👋 Welcome to Competishun – India’s most trusted platform for JEE & NEET preparation. Need help with JEE / NEET courses, fees, batches, test series or free study material? Chat with us now 👇