MathDB
Permutation of \(1,\ldots,2n\) in the sum of rows and columns

Source: Pan-American Girls’ Mathematical Olympiad 2023 P2

August 8, 2023
square gridcombinatorics

Problem Statement

In each cell of an n×nn \times n grid, one of the numbers 00, 1,1, or 22 must be written. Determine all positive integers nn for which there exists a way to fill the n×nn \times n grid such that, when calculating the sum of the numbers in each row and each column, the numbers 1,2,,2n1, 2, \ldots, 2n are obtained in some order.