IMC 2008 · Problem 5

Day 215th IMC · Blagoevgrad, Bulgaria

Statement

Let nn be a positive integer, and consider the matrix A=(aij)1i,jnA = (a_{ij})_{1 \le i,j \le n}, where

aij={1if i+j is a prime number,0otherwise.a_{ij} = \begin{cases} 1 & \text{if } i + j \text{ is a prime number}, \\ 0 & \text{otherwise.} \end{cases}

Prove that detA=k2|\det A| = k^2 for some integer kk.

Official solution

Hidden so you can work on the problem first.