MathDB
IMC 2002 Problem 7

Source: IMC 2002

March 7, 2021
linear algebramatrix

Problem Statement

Compute the determinant of the n×nn\times n matrix A=(aij)ijA=(a_{ij})_{ij}, aij={(1)ijifij,2ifi=j.a_{ij}=\begin{cases} (-1)^{|i-j|} & \text{if}\, i\ne j,\\ 2 & \text{if}\, i= j. \end{cases}