Strong pseudoprime: Difference between revisions

From Number
(Created page with '{{base-relative pseudoprimality property| test fooled = Rabin-Miller pseudoprimality test}} ==Definition== Suppose <math>n</math> is an odd composite natural number and <math>a...')
 
No edit summary
Line 1: Line 1:
{{base-relative pseudoprimality property|
{{base-relative pseudoprimality property|
test fooled = Rabin-Miller pseudoprimality test}}
test fooled = Rabin-Miller primality test}}


==Definition==
==Definition==


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''' 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 </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:
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:

Revision as of 23:46, 19 April 2009

Template:Base-relative pseudoprimality property

Definition

Suppose n is an odd composite natural number and a is an integer relatively prime to n. We say that n is a strong pseudoprime (also called Miller-Rabin pseudoprime, Rabin-Miller pseudoprime, Miller-Rabin strong pseudoprime, Rabin-Miller strong pseudoprime) to base a if the following holds.

Write </math>n-1 = 2^k s</math> where s is odd and k is a nonnegative integer. Then, either one of these conditions should hold:

  • as1(modn).
  • an11(modn). Further, consider the smallest l for which a2ls1(modn). Then, a2l1s1(modn). In other words, the last value before becoming 1 should be 1.

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.

Relation with other properties

Weaker properties