Olympiad Maths Prep

Track / Stage 7 / 189 of 300 #1589 of 2000

Problem 1589

National olympiad second round; IMO P1/P4
Number theory Difficulty 7.4 Prove it Estonian Mathematical Olympiad · Estonia

Call a number *interesting* if it can be represented as the sum of squares of three distinct non-negative integers. For example, the number 55 is interesting, because 5=02+12+225 = 0^2 + 1^2 + 2^2. Call a number *special* if it is not interesting, but can be represented as the product of two distinct interesting numbers.

a. Find one special number.

b. Prove that there are infinitely many special numbers.

This one wants a proof. Work it on paper, read the official solution, then mark yourself honestly — the ladder only means something if the record is true.

Official solution

The factorisation (2k+1)2=4k2+4k+1=4k(k+1)+1(2k+1)^2 = 4k^2 + 4k + 1 = 4k(k+1) + 1, where one of the numbers kk and k+1k+1 is always even, shows that the square of any odd number gives a remainder of 11 upon division by 88. The square of an even number not divisible by 44 gives a remainder of 44 and the square of an even number divisible by 44 gives a remainder of 00. Thus the only possible remainders of squares modulo 88 are 00, 11 and 44.

Therefore the sum of squares of three odd numbers gives a remainder of 33 modulo 88. The sum of squares of one number divisible by 44, one number divisible by 22, but not by 44, and one odd number gives a remainder of 55. Thus there are infinitely many interesting numbers giving remainders 33 and 55 modulo 88, and therefore also infinitely many products of distinct interesting numbers with a remainder of 357(mod8)3 \cdot 5 \equiv 7 \pmod{8}. These numbers are indeed special, as three numbers with remainders of 00, 11 or 44 cannot add up to a remainder of 77 modulo 88.

The smallest example is obtained by choosing the interesting numbers 12+32+521^2 + 3^2 + 5^2 and 02+12+220^2 + 1^2 + 2^2, whose product is 355=17535 \cdot 5 = 175.

Source: MathNet, licensed CC-BY-4.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.