Solve 99^99 congruent to (mod 47) using Fermat's Theorem

AI Thread Summary
To solve 99^99 congruent to (mod 47) using Fermat's Little Theorem, first reduce 99 modulo 47, resulting in 5. Then, compute powers of 5 using repeated squaring: 5^1 = 5, 5^2 = 25, and 5^4 = 14 (mod 47). By Fermat's theorem, 99^99 can be expressed as (99^47)^2 * 99^5, which simplifies to 5^7 (mod 47). Finally, calculate 5^7 by multiplying 5^1, 5^2, and 5^4, reducing modulo 47 at each step to find the final result.
pivoxa15
Messages
2,250
Reaction score
1
The question is

Use Fermat's Theorem to compute the following:

99^{99} \equiv (mod 47)

I spent over an hour on it but could only reduce it to 99^7 \equiv (mod 47)

I think I am missing something. So if you can help, it would be great. Please provide an explanation as well.

Thanks
 
Physics news on Phys.org
pivoxa15 said:
The question is

Use Fermat's Theorem to compute the following:

99^{99} \equiv (mod 47)

I spent over an hour on it but could only reduce it to 99^7 \equiv (mod 47)

I think I am missing something. So if you can help, it would be great. Please provide an explanation as well.
You are missing something
99=64+32+2+1
find
99^1 (mod 47)
99^2 (mod 47)
99^4 (mod 47)
99^8 (mod 47)
99^16 (mod 47)
99^32 (mod 47)
99^64 (mod 47)
by repeated squaring
then find
(99^64)(99^32)(99^2)(99^1) (mod 47)
recall that at each step you may reduce mod 47 so in no step do you need to compute with a number larger than 46.
 
I now see the part about Fermats Theorem. Fermat had many theorems, I assume you mean Fermats little theorem.
So by Fermats little theorem
99^47=99 (mod 47)
99^99=(99^47)^2(99^5)=99^7 (mod 47) then the method I listed abouve can be used, but now less squares are needed
7=1+2+4
find
99^1 (mod 47)
99^2 (mod 47)
99^4 (mod 47)
then multiply them and reduce modulo 47
again making reductions modulo 47 as needed.
 
lurflurf, yes I meant Fermat's little theorem but how would you do 99^4 (mod 47) quickly?

Thanks
 
pivoxa15 said:
lurflurf, yes I meant Fermat's little theorem but how would you do 99^4 (mod 47) quickly?

Thanks
By repeated squaring with reduction modulo 47 as needed.
all bellow is mod 47
99^1=2*47+5=5
99^2=5^2=25
99^4=25^2=625=13*47+14=14
or even easier
99^4=5^3*5=125*5=(2*47+31)*5=31*5=155=14+3*47=14
 
remember that in mod arithmetic you cah reduce any numver mod whatever anytime you need to. 99=5 mod 47, that should be your first step.
 
Kindly see the attached pdf. My attempt to solve it, is in it. I'm wondering if my solution is right. My idea is this: At any point of time, the ball may be assumed to be at an incline which is at an angle of θ(kindly see both the pics in the pdf file). The value of θ will continuously change and so will the value of friction. I'm not able to figure out, why my solution is wrong, if it is wrong .
TL;DR Summary: I came across this question from a Sri Lankan A-level textbook. Question - An ice cube with a length of 10 cm is immersed in water at 0 °C. An observer observes the ice cube from the water, and it seems to be 7.75 cm long. If the refractive index of water is 4/3, find the height of the ice cube immersed in the water. I could not understand how the apparent height of the ice cube in the water depends on the height of the ice cube immersed in the water. Does anyone have an...

Similar threads

3
Replies
105
Views
6K
2
Replies
93
Views
15K
Replies
1
Views
2K
2
Replies
80
Views
9K
Replies
1
Views
2K
Back
Top