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 4 of 4: Solve the remaining vertex case and count all symmetric configurations
In plain words

Once {2,5,8}\{2, 5, 8\} is placed at the corners, each side's pair of interior numbers is uniquely determined as a set; the only freedom left is the 3!=63! = 6 corner permutations and 23=82^3 = 8 interior swaps, giving 4848 solutions.

{a,b,c}={2,5,8}  ⟹  s=20, t=126;{3,7} on (2,8), {4,9} on (2,5), {1,6} on (5,8)\{a,b,c\}=\{2,5,8\} \implies s=20,\ t=126; \qquad \{3,7\}\text{ on }(2,8),\ \{4,9\}\text{ on }(2,5),\ \{1,6\}\text{ on }(5,8)
Detailed analysis

For {a,b,c}={2,5,8}\{a, b, c\} = \{2, 5, 8\}, we get 3s=2+5+8+45=60  ⟹  s=203s = 2 + 5 + 8 + 45 = 60 \implies s = 20 and 3t=22+52+82+285=378  ⟹  t=1263t = 2^2 + 5^2 + 8^2 + 285 = 378 \implies t = 126. The interior pairs on the sides (2,8)(2, 8), (2,5)(2, 5), and (5,8)(5, 8) must have square sums x2+y2=126−68=58x^2 + y^2 = 126 - 68 = 58, t12+u12=126−29=97t_1^2 + u_1^2 = 126 - 29 = 97, and m2+n2=126−89=37m^2 + n^2 = 126 - 89 = 37. Among the remaining numbers {1,3,4,6,7,9}\{1, 3, 4, 6, 7, 9\}, the unique solutions are {x,y}={3,7}\{x, y\} = \{3, 7\}, {t1,u1}={4,9}\{t_1, u_1\} = \{4, 9\}, and {m,n}={1,6}\{m, n\} = \{1, 6\}, each of which also gives side sum s=20s = 20. Permuting the vertex set {2,5,8}\{2, 5, 8\} in 3!=63! = 6 ways and ordering the two interior numbers on each side in 23=82^3 = 8 ways yields 3!⋅23=483! \cdot 2^3 = 48 solutions.