Let $R$ be the finite ring of the integers modulo $q$ or $GF(2^k)$. Let $M$ be $n \times n$ matrix with entries from $R$.
Assume $N,I,J$ are integers and for $ 1 \le i \le N-1$ we have $M^i[I,J]=0$ and $M^N[I,J] \ne 0$.
Q1 How large can $N$ be in terms of $n$, can it be $\exp(Cn)$?
Second question:
For $A \in R, A \ne 0$ assume for $ 1 \le i \le N-1$ we have $M^i[I,J]=A$ and $M^N[I,J] = 0$
Q2 How large can $N$ be in terms of $n$, can it be $\exp(Cn)$?