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 5 of 5: Conclude
In plain words
The global count of agrees with the two-way count only when is divisible by .
Detailed analysis
The row condition gives exactly cells containing . Equating this with the count from Steps 3 and 4 gives , hence . Thus , and since , this is equivalent to . Together with the explicit periodic tile, the answer is exactly the positive multiples of .