To solve the determinant of the given matrix, we can use the properties of determinants and the structure of the matrix. The matrix is almost diagonal except for the last row. We can use cofactor expansion along the last row to simplify the calculation.
Step 1: Identify the Matrix Structure
The given matrix is a \( n \times n \) matrix with a specific pattern. Let's denote the matrix as \( A \):
Notice that the submatrix is of the same form as the original matrix but of size \( (n-1) \times (n-1) \). We can continue this process recursively until we reach a \( 2 \times 2 \) matrix: