Calculating 7^402 mod 1000 with Euler's Theorem

  • Thread starter pivoxa15
  • Start date
  • Tags
    Theorem
In summary, The conversation involves the application of Euler's Totient Theorem to calculate a mod problem involving 7^40002 mod 1000. The person has reduced it to 7^402 but is unsure of what to do next. Another example is given involving 11^100 mod 72, which is reduced to 11^4 mod 72. There is a discussion on how to solve it, with one person suggesting to reduce 121 to 25, making the final answer 25 mod 72.
  • #1
pivoxa15
2,255
1
I have got another question, this time involving the Euler's Theorem:

a^(phi(m)) is congruent to 1 (mod m)

The question is calculate

7^40002 mod 1000

I could only reduce it to

7^402 mod 1000

What should I do now?

Thanks
 
Physics news on Phys.org
  • #2
pivoxa15 said:
I have got another question, this time involving the Euler's Theorem:

a^(phi(m)) is congruent to 1 (mod m)

The question is calculate

7^40002 mod 1000

I could only reduce it to

7^402 mod 1000

What should I do now?

Thanks
Again with the vague theorem referrence. This time you clearly mean Eulers Totient Theorem. Why not reduce once more?
we have 7 relatively prime to 1000.
phi(1000)=1000-1000/2-1000/5+1000/10=1100-700=400
so (all mod 1000)
7^400=1
7^40002=((7^400)^100)(7^2)=(1^100)(7^2)=7^2=49
 
  • #3
Thanks lurlurf, I didn't apply the Euler Totient theorem fully but I have another one

11^100 (mod 72)

This time I reduced it to 11^4 (mod 72)

I could evaluate it by hand which works out to be 7^4 (mod 72) but is there a better way of doing it.

Thanks
 
  • #4
11^4 is 121^2 and you can reduce 121 can't you? so 99^2 then, which is (40+9)^2 whcih is quite easy to work out and reduce esp since 72 divides 1440, hence 1512 and thus 1584 so it's what?

6+2.40.9+81=6+9=15
 
  • #5
Wait a minute :

11^4 = 121^2 == (-23)^2 = 529 =(72*7) + 25

So, 11^4 == 25 (mod 72)...no?
 
  • #6
oh i don't claim to have got the arithmetic right, only the method. i am a mathematician after all. i know how to solve it, doesn't mean i can get it rgight when i try.
 

1. What is Euler's Theorem?

Euler's Theorem is a mathematical theorem that states that if two numbers, a and m, are relatively prime (meaning they have no common factors other than 1), then a raised to the phi function of m, where phi is Euler's totient function, is congruent to 1 modulo m.

2. How is Euler's Theorem used in calculating 7^402 mod 1000?

Euler's Theorem is used to simplify the calculation of 7^402 mod 1000 by reducing the exponent from 402 to a smaller number. This is done by finding the phi function of 1000, which is 400, and using it as the new exponent in the equation, resulting in 7^400 mod 1000.

3. What is the phi function of 1000?

The phi function of 1000 is the number of positive integers less than or equal to 1000 that are relatively prime to 1000. In this case, the phi function of 1000 is 400, as the only positive integers less than or equal to 1000 that are relatively prime to 1000 are 1, 3, 7, and their multiples up to 1000.

4. How do you calculate 7^400 mod 1000?

To calculate 7^400 mod 1000, we can use Euler's Theorem to reduce the exponent to a smaller number. Since 7 and 1000 are relatively prime, we can replace 402 with the phi function of 1000, which is 400. Then, we can use the property of modular arithmetic that states (a^b mod m) = (a^b mod m) * (a^b mod m) mod m. This results in 7^400 mod 1000 = (7^4 mod 1000) * (7^4 mod 1000) * (7^4 mod 1000) * (7^4 mod 1000) mod 1000. We can then calculate each term separately and take the product of the results to get the final answer.

5. What is the final result of the calculation 7^402 mod 1000 with Euler's Theorem?

The final result of the calculation is 1. This is because Euler's Theorem states that 7^400 mod 1000 is congruent to 1 modulo 1000. Therefore, 7^402 mod 1000 is equivalent to (7^400 mod 1000) * (7^2 mod 1000) mod 1000, which is equivalent to (1 * 49) mod 1000, which gives us a final result of 49.

Similar threads

  • Introductory Physics Homework Help
Replies
5
Views
1K
  • Introductory Physics Homework Help
Replies
7
Views
760
  • Introductory Physics Homework Help
Replies
2
Views
2K
  • Introductory Physics Homework Help
Replies
26
Views
840
  • Introductory Physics Homework Help
Replies
2
Views
1K
  • Introductory Physics Homework Help
Replies
4
Views
442
  • Engineering and Comp Sci Homework Help
Replies
1
Views
1K
  • Introductory Physics Homework Help
Replies
2
Views
624
  • Introductory Physics Homework Help
Replies
3
Views
923
  • Introductory Physics Homework Help
Replies
11
Views
1K
Back
Top