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 3 of 4: Eliminate the first two candidate vertex sets using modulo 4
In plain words
Checking squares modulo is a fast filter: no sum of two integer squares can ever leave remainder , which rules out and without any trial and error.
Detailed analysis
If , then , so . On the side connecting vertices and , the two interior numbers must satisfy , which is impossible because or implies . Similarly, if , then , so ; on the side between and , the interior numbers must satisfy , again impossible.