Let a matrix be a tridiagonal matrix of size $n \times n$, with elements equal to $2$ on the main diagonal, elements equal to $1$ directly above the main diagonal, elements equal to $3$ directly below the main diagonal, and with zeros in all other elements: \begin{bmatrix} 2 & 1 & & & & \\ 3 & 2 & 1 & & & \\ & 3 & 2 & 1 & & \\ & & 3 & 2 & \ddots & \\ & & & \ddots & \ddots & 1\\ & & & & 3 & 2 \end{bmatrix} Express the determinant $A (n)$ using the determinants $A (n-2)$ and $A (n-1)$.
Could you explain me how this task is supposed to be done?