MathDB
grid

Source: Ireland 2002

July 5, 2009
floor functioncombinatorics proposedcombinatorics

Problem Statement

A 3×n 3 \times n grid is filled as follows. The first row consists of the numbers from 1 1 to n n arranged in ascending order. The second row is a cyclic shift of the top row: i,i\plus{}1,...,n,1,2,...,i\minus{}1 for some i i. The third row has the numbers 1 1 to n n in some order so that in each of the n n columns, the sum of the three numbers is the same. For which values of n n is it possible to fill the grid in this way? For all such n n, determine the number of different ways of filling the grid.