Let $A = \begin{pmatrix} 2 & -1 & -1 \\ 1 & 0 & -1 \\ 1 & -1 & 0 \end{pmatrix}$ and $B = A - I$. If $\omega = \frac{\sqrt{3}i - 1}{2}$, then the number of elements in the set $\{n \in \{1, 2, \ldots, 100\}: A^n + (\omega B)^n = A + B\}$ is equal to ______.
Numerical-value question: the answer is a number.
Show answer
The answer is 17.
Key from source paper