Homepage › Solution manuals › Ivan Niven › An Introduction to the Theory of Numbers › Exercise 2.1.29 (Last digit of $2^{400}$)
Exercise 2.1.29 (Last digit of $2^{400}$)
What is the last digit in the ordinary decimal representation of ?
Answers
Proof. Note that , thus .
Moreover .
Write . We know that
Therefore
Since and , where , we obtain , so
The last digit of is .
(
622016841194629645353280137831435903171972747493376
Thanks to ipython! )