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

Click For Summary

Homework Help Overview

The problem involves using Fermat's Little Theorem to compute \(99^{99} \equiv (mod \, 47)\). Participants are exploring methods to simplify the computation and reduce the exponent using modular arithmetic.

Discussion Character

  • Exploratory, Mathematical reasoning, Assumption checking

Approaches and Questions Raised

  • Participants discuss reducing \(99^{99}\) to \(99^7\) and question the steps taken to reach this simplification. There are mentions of using repeated squaring and modular reductions to compute powers of \(99\) modulo \(47\). Some participants suggest finding specific powers like \(99^1\), \(99^2\), and \(99^4\) modulo \(47\) as part of the approach.

Discussion Status

The discussion is active with participants sharing insights on Fermat's Little Theorem and methods for computing powers modulo \(47\). There is an exchange of ideas about the efficiency of different approaches, particularly regarding repeated squaring and modular reductions. No consensus has been reached, but several productive lines of inquiry are being explored.

Contextual Notes

Participants note the importance of reducing numbers modulo \(47\) at various steps, and there is an emphasis on the need to compute with smaller numbers throughout the process. Some participants express uncertainty about the quickest methods for specific calculations.

pivoxa15
Messages
2,250
Reaction score
1
The question is

Use Fermat's Theorem to compute the following:

[tex]99^{99} \equiv (mod 47)[/tex]

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

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:

[tex]99^{99} \equiv (mod 47)[/tex]

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

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.
 

Similar threads

  • · Replies 105 ·
4
Replies
105
Views
12K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 26 ·
Replies
26
Views
4K
Replies
4
Views
3K
Replies
17
Views
4K