Skip to main content
OlympiadHQ

Browse · MathNet

Print

Croatia_2018

Croatia 2018 number theory

Problem

A Gaussian integer is a complex number whose real and imaginary parts are both integers. Determine the largest positive integer for which there is a set of Gaussian integers such that the squares of their absolute values are consecutive positive integers. (Matko Ljulj)
Solution
If a complex number is Gaussian integer, then is the sum of two squares of integers. The square of an even integer is divisible by 4, while the square of an odd integer gives remainder 1 when divided by 4. Therefore, the sum of squares of two integers can give remainder 0, 1 or 2 when divided by 4. If is greater than 3, then among any four consecutive positive integers in the sequence there would be a number giving the remainder 3 when divided by 4, which is impossible. Hence, is less than or equal to 3. Notice that , and are Gaussian integers whose absolute values squared are , and , respectively. Therefore, the answer for is .
Final answer
3

Techniques

Techniques: modulo, size analysis, order analysis, inequalitiesQuadratic residuesComplex numbers