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 3 of 5: Count on the two diagonal families
In plain words
The diagonal hypothesis gives exactly occurrences of in each family. Their overlap is precisely the good -cells.
Detailed analysis
Let be the sets of cells containing on diagonals of the two directions whose lengths are multiples of . Every such diagonal is balanced, so . Their intersection consists exactly of the good -cells, hence . Therefore , and the number of -cells in exactly one family is .