Browse · MathNet
PrintPreselection tests for the full-time training
Saudi Arabia number theory
Problem
The positive integer is relatively prime with . Prove that for any positive integer , there exists a power of whose last digits are .
Solution
This is equivalent to prove that there exists a positive integer such that divides .
First solution. Consider the remainders of the division of the powers of by . Since there are at most possible remainders, by the pigeonhole principle there exist at least two powers , having the same remainder. Therefore divides . But is relatively prime with . This proves that divides .
Second solution. Since and are relatively prime, by Euler's theorem Therefore, divides .
First solution. Consider the remainders of the division of the powers of by . Since there are at most possible remainders, by the pigeonhole principle there exist at least two powers , having the same remainder. Therefore divides . But is relatively prime with . This proves that divides .
Second solution. Since and are relatively prime, by Euler's theorem Therefore, divides .
Techniques
Fermat / Euler / Wilson theoremsPigeonhole principleGreatest common divisors (gcd)