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(5,9)=1, then, by Euler's theorem, 561(mod9).



Since 2012=335×6+2,

52012(56)335×521335×257(mod9).


No comments:

Post a Comment

real analysis - How to find limhrightarrow0fracsin(ha)h

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