I want to find the inverse of this $n\times n$ matrix, assuming it is invertible. The condition of invertible is discussed at Rank of the $n \times n$ matrix with ones on the main diagonal and $a$ off the main diagonal.
Now assume it is invertible. I need to find the inverse.
\begin{pmatrix} 1 & a & a & \cdots & \cdots & a \\ a & 1 & a & \cdots & \cdots & a \\ a & a & 1 & a & \cdots & a \\ \vdots & \vdots & a& \ddots & & \vdots\\ \vdots & \vdots & \vdots & & \ddots & \vdots \\ a & a & a & \cdots &\cdots & 1 \end{pmatrix}