Skip to main content
OlympiadHQ

Browse · MathNet

Print

59th Ukrainian National Mathematical Olympiad

Ukraine number theory

Problem

For which positive integers , there exist odd (not necessarily different) numbers such that is a square of some positive integer?
Solution
Clearly, square of an integer number can give a remainder of , or modulo . Therefore, only for of the form , where , such numbers can exist. Let us show how they can be constructed.



Final answer
Exactly those n with n ≡ 0, 1, or 4 (mod 8).

Techniques

Modular ArithmeticQuadratic residues