For odd coprime to , the Fermat pseudoprime test is . The Euler pseudoprime test meant here is the Euler–Jacobi test,where the right side is the Jacobi symbol. Write , with odd. The strong pseudoprime test passes when , or when for some . Terminology often reserves “pseudoprime” for composite numbers; the question uses it for passing the respective test, including primes.
For the final example, is composite and , so . It passes the Fermat primality test. However , whereas the supplementary law for the Jacobi symbol gives since . Thus 341 is Fermat but not Euler–Jacobi pseudoprime to base two. A weaker convention defining an Euler test merely by would not give the claimed distinction, which is why the Jacobi convention matters.
If is prime, Fermat's little theorem gives . If , the strong test already passes. Otherwise let be the first index with . Its preceding value satisfies and in the field . Since in a field, . The index lies between zero and , so every coprime base passes the strong test when is prime.
For the plain pseudoprime assertion use the Fermat primality test. In the finite group of units modulo an integer, letIt is the kernel of a group homomorphism, because the unit group is an abelian group. The given witness makes a proper subgroup. By Lagrange's theorem for finite groups, . Thus at least half of all units fail the test. Removing base one removes a passing base, so among the permitted there remain failures out of bases, still at least half.
Articles by others on the same topic
There are currently no matching articles.