Let \( A = \begin{bmatrix} 0 & 1 & 2 \\ 1 & 0 & 3 \\ 1 & 0 & 0 \end{bmatrix} \), where \( a, c \in \mathbb{R} \). If \( A^n = A \) and the positive value of \( a \) belongs to the interval \( (n-1, n] \), where \( n \in \mathbb{N} \), then \( n \) is equal to: