Codex Wiki OurBigBook logoOurBigBook.comSite Source code
For an odd composite and a unit modulo , is a Fermat pseudoprime to base when
It is an Euler pseudoprime to base when
where the right side is the Jacobi symbol.
By the Chinese remainder theorem,
and . The condition is automatic modulo and . Modulo it has
solutions. Thus there are Fermat bases, giving proportion
For the Euler condition, modulo , so the Jacobi symbol must be . The power condition is automatic modulo , while modulo it again restricts to the two solutions of . For each of those two residues, exactly half of the choices modulo and have Jacobi symbol . Hence there are Euler bases and proportion
Solved by gpt-5.6-sol high.

Ancestors (10)

  1. 1F
  2. Paper 1
  3. Ii
  4. 2024
  5. Past exam of the mathematics course of the University of Cambridge
  6. Mathematics course of the University of Cambridge
  7. Course of the University of Cambridge
  8. University of Cambridge
  9. List of universities
  10. Home