Skip to main content
OlympiadHQ

Browse · MathNet

Print

Macedonian Junior Mathematical Olympiad

North Macedonia number theory

Problem

The number is given, written in base 10. In one step we make the following operation: we delete the first and last digit, and we add their sum to the number which remained after deleting the first and last digit.

a) If after a finite number of steps there remains a two-digit number, is it possible that that number is a perfect square?

b) If after a finite number of steps there remains a one-digit number. Determine that number.
Solution
We will use the following well-known results: Property. 1. Every natural number, when divided by or gives the same remainder as the sum of its digits. Property. 2. A square of a natural number, when divided by gives the remainder or . And we will show this property. Property. 3. After any step, the remainder by division by is invariant. Proof. Let, after some step, the number be obtained. According to Property. 1, we have After deleting the first and last digit we get the number . Hence, after one step, the number is obtained. Now we have This finishes the proof of Property. 3.

a) If after a finite number of steps we get the number , then according to Property. 3, will give the same remainder when divided by as the number . We get , which implies ---

According to Property. 3 and the above-said we get that , so according to Property. 2, it cannot be a perfect square.

b) If, after a finite number of steps, the one-digit number is obtained, then according to Property. 3, we get that . We have so Then i.e. , where is an odd natural number. Now we have from where it is clear that .
Final answer
a) No. b) 5

Techniques

OtherIntegers