Problem 2
Given a triangular arrangement of circles along the perimeter of a triangle, with circles on each of the three sides (three vertex circles shared by adjacent sides and two interior circles on each side), each of the numbers is to be written into one of these circles, so that each circle contains exactly one of these numbers and: (i) the sums of the four numbers on each side of the triangle are equal; (ii) the sums of the squares of the four numbers on each side of the triangle are equal. Find all ways in which this can be done.
Step 2 of 4: Use modulo 3 arithmetic to narrow the vertices to three residue classes
In plain words
Once the vertices are forced to share the same remainder modulo , they must exhaust one of the three residue classes , , or .
Detailed analysis
Every integer square satisfies or , so holds if and only if either all three of are divisible by or none of them is divisible by . Combining this with shows that all three vertices must be congruent modulo . Since there are only three numbers in each residue class, .