Is 25 a strong pseudoprime to base 7?

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 2K views
buzzmath
Messages
108
Reaction score
0
I'm trying to show that 25 is a strong pseudoprime to the base 7 using millers test. Is there a better way to solve this than just brute force?
Thanks
 
Physics news on Phys.org
I'm not sure of the notation. I assume that you need to compute

[tex]7^{25}\;\;\textrm{mod}\;(25).[/tex]

The way to do is to avoid letting the power get all out of control. Consider:

7*7 = 49 = 24 = -1 mod (25)

so
7*7*7*7 = 1 mod (25).

so what is 7^{24}?

Carl