Let $A = \begin{bmatrix} 0 & 1 & 0 \\ 1 & 0 & 0 \\ 0 & 0 & 1 \end{bmatrix}$. Then the number of $3 \times 3$ matrices $B$ with entries from the set $\{1, 2, 3, 4, 5\}$ and satisfying $AB = BA$ is ______.
Numerical-value question: the answer is a number.
Show answer
The answer is 3125.
Key from source paper