Skip to main content
OlympiadHQ

Browse · MathNet

Print

IRL_ABooklet_2023

Ireland 2023 number theory

Problem

You are given a positive integer. Prove that you can append digits to the given number so that the resulting number is a perfect square.

For example, the given integer can be extended to .
Solution
Let be the given number and suppose we extend it by digits. The value of is still to be determined. The smallest such extension is and the largest is . It is possible to complete the number to a perfect square by appending digits if there exists an integer such that Because , for large enough we have . Hence, there is an integer between and .

---

Alternative solution.

Let the given number have less than digits, i.e. . Let be the largest integer for which , i.e. Combining with we get , and so . Using , which follows from , we obtain We then get This means that the number is obtained from the number by appending digits.

Techniques

OtherLinear and quadratic inequalitiesIntegers