Is there any clever and short way to find out the determinant of the following matrix?
\begin{bmatrix} b_1 & b_2 & b_3 & \cdots & b_{n-1} & 0 \\ a_1 & 0 & 0 & \cdots & 0 & b_1 \\ 0 & a_2 & 0 & \cdots & 0 & b_2\\ \vdots & \vdots & \vdots & \ddots & \vdots & \vdots \\ 0 & 0 & 0 & \cdots & a_{n-1} & b_{n-1} \\ \end{bmatrix}
Any help will be appreciated.
I'll give you a bunch of hints to start:
When computing the determinant, it is best to start with the row containing the greatest number of null entries. In your case it's the last line. First step yields:
$$\det(A(n))=b_{n-1}\left|\begin{matrix} b_1 & b_2 & b_3 & \cdots & b_{n-1} \\ a_1 & 0 & 0 & \cdots & 0 \\ 0 & a_2 & 0 & \cdots & 0 \\ \vdots & \vdots & \vdots & \ddots&\vdots \\ 0 & 0 & \cdots & a_{n-2}&0 \\ \end{matrix}\right|- a_{n-1}\left|\begin{matrix} b_1 & b_2 & b_3 & \cdots & b_{n-2} & 0 \\ a_1 & 0 & 0 & \cdots & 0 & b_1 \\ 0 & a_2 & 0 & \cdots & 0 & b_2\\ \vdots & \vdots & \vdots & \ddots & \vdots \\ 0 & 0 & 0 & \cdots & a_{n-2} & b_{n-2} \\ \end{matrix}\right| $$
The first term can easily shown to be equal to $$b_{n-1}^2\prod_{k=1}^{n-2}a_k$$ While the second term can be written as$$a_{n-1}\det(A(n-1))$$
Now you have a recurrence relation: $$\det(A(n))=\left(b_{n-1}^2\prod_{k=1}^{n-2}a_k\right)-a_{n-1}\det(A(n-1))$$
You can start with $$\det(A(2))=\left|\begin{matrix}b_1&0\\a_1&b_1\end{matrix}\right|=b_1^2$$