2014 AIME I Problem 8
Problem 8 of 15IntermediateNumber Theory
The positive integers and both end in the same sequence of four digits when written in base where digit is not zero. Find the three-digit number
Your answer
Integer from 0 to 999
Show solution
Solution
The condition is that is, Since consecutive integers are coprime, divides one of and divides one of them. This gives four cases modulo (which is mod and mod ), and (which is mod and mod ).
The last four digits must have which rules out and So — for instance — and
Tagged: modular arithmetic · Chinese Remainder Theorem · digits