Let there be $A_n=\left(\begin{matrix}4&2&\cdots&2\\2&4&\ddots&\vdots\\\vdots&\ddots&\ddots&2 \\2&\cdots&2&4\end{matrix}\right)\in M_n\left(\mathbb{Z}_7\right)$
I came to the conclusion that on the main diagonal there is $(4,-8,16,-32,...)$ or in $mod(7)$ $(4,-1,2,-4,1,...,)$. I am trying to find the general formula for $det(A_n)$