Let $A$ be a square matrix with integer entries and let $m$ be a positive integer. From the pigeonhole principle it follows easily that the sequence $$I,A, A^2, A^3,\; \dots \pmod m$$ is eventually periodic, that is, there exist integers $s \geq 0$ and $t > 0$ such that $$(1) \quad A^{s + t + n} \equiv A^{s + n} \pmod m$$ for every integer $n \geq 0$. Here the reduction modulo $m$ of a matrix with integer entries is meant as the reduction modulo $m$ of each of the entries.
The minimum $s$ such that (1) holds is called the preperiod of $A$ and it is denoted by $s_A(m)$. From the Chinese remainder theorem it follows that $$s_A(m_1 m_2) = \max(s_A(m_1),s_A(m_2))$$ for all coprime positive integers $m_1, m_2$. Hence the computation of $s_A(m)$ is reduced to the case of $m$ being a prime power.
Questions:
(i) Is it true that, for each prime number $p$, there exist integers $a,b,c \geq 0$ such that $$s_A(p^k) = ak + b$$ for every integer $k > c$ ? Answer: No, mathematician123 provided the example $A = p^2 I$.
(ii) If not, what is the behavior of $s_A(p^k)$ for large $k$ ?
These seem pretty much natural questions, but unfortunately I was not able to find any answer in the literature.
If $\det(A)$ is not divisible by $p$, then $A$ is invertible modulo $p^k$, and this yields $s_A(p^k) = 0$ for every $k$. Hence the interesting case is when $\det(A)$ is divisible by $p$.