I'm trying to solve the following nxn determinant:
$ \displaystyle \begin{vmatrix} 0 & 1 & 1 &\ldots &1\\ 1 & a_1& 0& \ldots & 0\\ 1 & 0 &a_2 &\ldots &0 \\ \vdots & \vdots & \vdots &\ddots & \vdots \\ 1 & 0& 0 & \ldots & a_n \\ \end{vmatrix} $
I've tried subtracting the last row from all the others except the first in order to get a lower triangle determinant but I still don't know how to get rid of the 1 on the bottom left corner. Any hints?