I'm solving a problem and I'm having difficulties in calculation of the determinants of two matrices.
There is two $N\times N$ matrices:
$$\left( \begin{array}{cccc} a & 1 & \ldots & 1 \\ 1 & a & \ldots & \vdots \\ \vdots & \ldots & \ddots & 1 \\ 1 & \ldots & 1 & a \\ \end{array} \right)$$ where $a\in \mathbb{R}$
and $$\left( \begin{array}{cccc} a_1 & 1 & \ldots & 1 \\ 1 & a_2 & \ldots & \vdots \\ \vdots & \ldots & \ddots & 1 \\ 1 & \ldots & 1 & a_n \\ \end{array} \right)$$ where $a_1,\ldots,a_n\in \mathbb{R}$
I've tried to get recursive formula, but I have no result.
If someone could help or give me any links I would be grateful.