Problem 4
Consider a board with an integer written in each unit square. Two unit squares are called neighbours if they share a common edge. In each turn, some unit squares are chosen; then, for each chosen square, the average of all its neighbours is computed, and finally, after all these computations are done, the number in each chosen square is replaced by its corresponding average. Is it always possible to make the numbers in all squares equal after finitely many turns?
Step 1 of 6: Work modulo a prime where every degree is invertible
Detailed analysis
Every square has , , or neighbours, and are all invertible modulo the prime . So the averaging operation can be carried out entirely modulo by multiplying by the corresponding inverse, and if some sequence of turns equalizes the integer board, applying the same sequence to the residues modulo equalizes the board modulo as well.