The sum of the digits of N=52012 is computed.
The sum of the digits of the resulting sum is then computed.
The process of computing the sum is repeated until a single digit number is obtained.
What is this single digit number?
Answer
You want to know the value of 52012(mod9).
Since φ(9)=32−3=6 and gcd(5,9)=1, then, by Euler's theorem, 56≡1(mod9).
Since 2012=335×6+2,
52012≡(56)335×52≡1335×25≡7(mod9).
No comments:
Post a Comment