Let $A$ be a matrix sized $p\times p$, Where $2\le p$. The matrix values in the main diagonal are $0$ and the rest are $1$'s.
Example for $A$ where $p=5$: $$\begin{bmatrix} 0 & 1 & 1 & 1 & 1 \\ 1 & 0 & 1 & 1 & 1 \\ 1 & 1 & 0 & 1 & 1 \\ 1 & 1 & 1 & 0 & 1 \\ 1 & 1 & 1 & 1 & 0 \\ \end{bmatrix} $$
Using reccurences relations, describe $A^k$.
HINT: Calculating a few powers of such matrices quickly suggests that $A^k$ always has just two distinct entries, one appearing on the diagonal, and the other appearing off the diagonal. You might try proving this by induction: the induction step, if it works, is likely to tell you what the recurrences actually are.
Let the $(i,j)$-entry of $A^k$ be $a_{ij}^k$, and suppose that $a_{ii}^k=b_k$ for $i=1,\dots,n$ and $a_{ij}^k=c_k$ when $i\ne j$. Then
$$a_{ii}^{k+1}=\sum_{j=1}^{i-1}c_k+\sum_{j=i+1}^nc_k=(n-1)c_k\;;$$
why? This is independent of $i$, so all of the diagonal entries of $A^{k+1}$ are equal to $b_{k+1}(n-1)c_k$. See if you can finish it by dealing with the off-diagonal elements.