Sunday, 10 July 2016

elementary number theory - Calculating the last digit of exponent




I need to calculate the last digit of 723n.(For every positive integer n).



If it was to calculate the last digit of ab when I know the value of a and b,then it was easy-



for example,If I was asked to calc the last two digis of 31123,I calculate the Euler function of 100, which is 40.Then,since gcd(3,100)=1, We know that 3401(mod100) So:



311233112033(340)2833127(mod100). So it's 27.



But I'm not sure how to do it when I don't know the power...


Answer




Note that 7233(mod10)723n3n(mod10). But also ϕ(10)=4, so we have that 34k+t3t(mod10). So eventually to find all possible residues you need to calculate the resudies of 30,31,32 and 33 modulo 10.


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}...