I am reading the CodeChef Introductory Tutorials For Competitive Programming: Basic maths.(link:https://drive.google.com/file/d/0B-W-TWxgtybGRHdBRFdVT0ZraWc/view)
After reading the mod multiplication part we are expected to solve this question
Try writing a program to compute the 4 right-most digits of 2^10105 +
2^123456. Your output should be 3968.
Even after reading the text multiple time, I am not able to understand how we can solve the above problem. Please help me in understanding the concept and share your valuable tips with me.
Please do also tag your friends and other people who you think can share something to help.
I am thankful for any suggestion, advice, or study material you can share with me.
Thank you, my friends