IMC 2001 · Problem 1

Day 18th IMC · Prague, Czech Republic

Statement

Let nn be a positive integer. Consider an n×nn \times n matrix with entries 1,2,,n21, 2, \dots, n^2 written in order starting top left and moving along each row in turn left–to–right. We choose nn entries of the matrix such that exactly one entry is chosen in each row and each column. What are the possible values of the sum of the selected entries?

Official solution

Hidden so you can work on the problem first.