Skip to main content
OlympiadHQ

Browse · MathNet

Print

59th Ukrainian National Mathematical Olympiad

Ukraine number theory

Problem

Three numbers , and are written on a long paper strip without any space in-between, thus, creating one big number . Arsenii claims that he can change the last digit of number so that the new number is a power of . Is he right?
Solution
Suppose Arsenii's claim is correct and by changing the last digit of number he obtained , where is a positive integer. Clearly, he had to change the last digit, because it is . Since , and , the sums of their digits have the same remainders modulo . The change of the last digit to digit means that we subtracted (or added ) and added modulo . Thus, the new number (denoted by ) equals . Since , we could add one of the following digits: , or . Since the last digit of can be , , or , we need to consider two cases. Case 1. ends with , it is possible in the case , then the following is true modulo : . Note that . , so we get a contradiction. Case 2. ends with , it is possible if , then the following is true modulo : . Note that – contradiction. These contradictions complete the proof.
Final answer
No

Techniques

Modular Arithmetic