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 340≡1(mod100) So:
31123≡31120⋅33≡(340)28⋅33≡1⋅27(mod100). So it's 27.
But I'm not sure how to do it when I don't know the power...
Answer
Note that 723≡3(mod10)⟹723n≡3n(mod10). But also ϕ(10)=4, so we have that 34k+t≡3t(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