MathLabs

Problem 2

Given a triangular arrangement of 99 circles along the perimeter of a triangle, with 44 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 1,2,…,91, 2, \ldots, 9 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 44 is a fast filter: no sum of two integer squares can ever leave remainder 3(mod4)3 \pmod{4}, which rules out 4747 and 6767 without any trial and error.

{a,b,c}={3,6,9}  ⟹  t=137, x2+y2=47≡3(mod4);{a,b,c}={1,4,7}  ⟹  t=117, x2+y2=67≡3(mod4)\{a,b,c\}=\{3,6,9\} \implies t=137,\ x^2+y^2=47 \equiv 3 \pmod{4}; \qquad \{a,b,c\}=\{1,4,7\} \implies t=117,\ x^2+y^2=67 \equiv 3 \pmod{4}
Detailed analysis

If {a,b,c}={3,6,9}\{a, b, c\} = \{3, 6, 9\}, then 3t=32+62+92+285=4113t = 3^2 + 6^2 + 9^2 + 285 = 411, so t=137t = 137. On the side connecting vertices 33 and 99, the two interior numbers x,yx, y must satisfy x2+y2=137−(32+92)=47≡3(mod4)x^2 + y^2 = 137 - (3^2 + 9^2) = 47 \equiv 3 \pmod{4}, which is impossible because x2,y2≡0x^2, y^2 \equiv 0 or 1(mod4)1 \pmod{4} implies x2+y2≡0,1,2(mod4)x^2 + y^2 \equiv 0, 1, 2 \pmod{4}. Similarly, if {a,b,c}={1,4,7}\{a, b, c\} = \{1, 4, 7\}, then 3t=12+42+72+285=3513t = 1^2 + 4^2 + 7^2 + 285 = 351, so t=117t = 117; on the side between 11 and 77, the interior numbers must satisfy x2+y2=117−(12+72)=67≡3(mod4)x^2 + y^2 = 117 - (1^2 + 7^2) = 67 \equiv 3 \pmod{4}, again impossible.