Friday, 4 November 2016

number theory - Sum of the digits of N=52012



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)=323=6 and gcd, then, by Euler's theorem, 5^6 \equiv 1 \pmod 9.



Since 2012 = 335 \times 6 + 2,

5^{2012} \equiv (5^6)^{335} \times 5^2 \equiv 1^{335} \times 25 \equiv 7 \pmod 9.


No comments:

Post a Comment

real analysis - How to find lim_{hrightarrow 0}frac{sin(ha)}{h}

How to find \lim_{h\rightarrow 0}\frac{\sin(ha)}{h} without lhopital rule? I know when I use lhopital I easy get $$ \lim_{h\rightarrow 0}...