SOLUTION: I need help using modular arithmetic to find the last two digits of a big number, for example 142^291 or something. I know how to use modular arithmetic to find the units digit, bu
Algebra.Com
Question 615553: I need help using modular arithmetic to find the last two digits of a big number, for example 142^291 or something. I know how to use modular arithmetic to find the units digit, but not the last two digits. I'm only a beginner at modular arithmetic, and would like to get better at it.
Answer by jim_thompson5910(35256) (Show Source): You can put this solution on YOUR website!
142 = 42 (mod 100)
142^2 = 142*142 = 42*42 = 1764 = 64 (mod 100)
144^4 = (144^2)^2 = 64^2 = 4096 = 96 (mod 100)
144^8 = (144^4)^2 = 96^2 = 9216 = 16 (mod 100)
144^16 = (144^8)^2 = 16^2 = 256 = 56 (mod 100)
144^32 = (144^16)^2 = 56^2 = 3136 = 36 (mod 100)
144^64 = (144^32)^2 = 36^2 = 1296 = 96 (mod 100)
144^128 = (144^64)^2 = 96^2 = 9216 = 16 (mod 100) ... Notice that there's a pattern starting to emerge
144^256 = (144^128)^2 = 16^2 = 256 = 56 (mod 100)
-------------------------------------------------------
So
142^2 = 64 (mod 100)
144^4 = 96 (mod 100)
144^8 = 16 (mod 100)
144^16 = 56 (mod 100)
144^32 = 36 (mod 100)
144^64 = 96 (mod 100)
144^128 = 16 (mod 100)
144^256 = 56 (mod 100)
-------------------------------------------------------
142^291 (mod 100)
142^(256 + 32 + 2 + 1) (mod 100)
( 142^256 ) * ( 142^32 ) * ( 142^2 ) * ( 142^1 ) (mod 100)
( 56 ) * ( 36 ) * ( 64 ) * ( 42 ) (mod 100)
5419008 (mod 100)
8 (mod 100)
Therefore 142^291 = 8 (mod 100)
So the last two digits of 142^291 are 08
RELATED QUESTIONS
Can somebody please help me out? I need help with sequence and series. Below is a problem (answered by Theo)
I have a sphere with a diameter of 88,846 miles, and another sphere with a diameter of... (answered by nerdybill)
Please help me !!i want to Know something.. when i get the hypotenuse for example the... (answered by nerdybill)
I tried doing a question saying "you are planning a 425 mile trip to San Fransisco. you... (answered by Alan3354)
Will someone please help me. I don't know where to begin on this problem. I have to... (answered by monika_p)
I have just learned about logarithms, and the math lesson did not give a full example of... (answered by Alan3354)
Please help me solve this word problem: The sum of the digits of a two-digit number is... (answered by Theo)
Most ATMs require that you enter a four-digit code, using the digits 0 to 9. How many... (answered by solver91311)
I really need your help, I am sort of confused.
We didn't go over an example like this... (answered by Mathtut)