Strong pseudoprime: Difference between revisions
No edit summary |
|||
Line 6: | Line 6: | ||
Suppose <math>n</math> is an odd composite natural number and <math>a</math> is an integer relatively prime to <math>n</math>. We say that <math>n</math> is a '''strong pseudoprime''' (also called '''Miller-Rabin pseudoprime''', '''Rabin-Miller pseudoprime''', '''Miller-Rabin strong pseudoprime''', '''Rabin-Miller strong pseudoprime''') to base <math>a</math> if the following holds. | Suppose <math>n</math> is an odd composite natural number and <math>a</math> is an integer relatively prime to <math>n</math>. We say that <math>n</math> is a '''strong pseudoprime''' (also called '''Miller-Rabin pseudoprime''', '''Rabin-Miller pseudoprime''', '''Miller-Rabin strong pseudoprime''', '''Rabin-Miller strong pseudoprime''') to base <math>a</math> if the following holds. | ||
Write < | Write <math>n-1 = 2^k s</math> where <math>s</math> is odd and <math>k</math> is a nonnegative integer. Then, either one of these conditions should hold: | ||
* <math>a^s \equiv 1 \pmod n</math>. | * <math>a^s \equiv 1 \pmod n</math>. |
Latest revision as of 22:44, 15 June 2021
Template:Base-relative pseudoprimality property
Definition
Suppose is an odd composite natural number and is an integer relatively prime to . We say that is a strong pseudoprime (also called Miller-Rabin pseudoprime, Rabin-Miller pseudoprime, Miller-Rabin strong pseudoprime, Rabin-Miller strong pseudoprime) to base if the following holds.
Write where is odd and is a nonnegative integer. Then, either one of these conditions should hold:
- .
- . Further, consider the smallest for which . Then, . In other words, the last value before becoming should be .
The name strong pseudoprime is because the above condition is satisfied for all primes, and is a particularly strong condition for which finding composite numbers is hard.