Problem 2
Find all integers for which each cell of an table can be filled with one of the letters , , and in such a way that: in each row and each column, one third of the entries are , one third are , and one third are ; and in any diagonal, if the number of entries on the diagonal is a multiple of three, then one third of the entries on that diagonal are , one third are , and one third are . (Note that an table has diagonals in total, in both directions.)
Step 2 of 5: Necessity: mark the good cells
In plain words
The row and column conditions force . The cells with both coordinates congruent to modulo are the centers that can be counted from two directions.
Detailed analysis
Each row contains one third of each letter, so ; write . Call a cell good. Let be the number of good cells containing . Every good cell lies on one diagonal of each direction, and both diagonal lengths are multiples of .