The number of elements in the set $\left\{A = \begin{bmatrix} a & b \\ 0 & d \end{bmatrix} : a, b, d \in \{-1, 0, 1\}\ \text{and}\ (I - A)^3 = I - A^3\right\}$, where $I$ is $2 \times 2$ identity matrix, is ______.
Numerical-value question: the answer is a number.
Show answer
The answer is 8.
Key from source paper