Documentation

FormalConjectures.Wikipedia.Selfridge

Selfridge's conjectures #

Reference: Wikipedia

structure Selfridge.IsSelfridge (p : ) :

A number p satisfies the Selfridge condition if

  1. p is odd,
  2. p ≡ ± 2 (mod 5),
  3. 2^(p-1) ≡ 1 (mod p)
  4. (p+1).fib ≡ 0 (mod p)

This is the condition that is tested in the PSW conjecture. Note: this is non-standard terminology.

Instances For
    theorem Selfridge.isSelfridge_iff (p : ) :
    IsSelfridge p Odd p (p 2 [MOD 5] p 3 [MOD 5]) 2 ^ (p - 1) 1 [MOD p] Nat.fib (p + 1) 0 [MOD p]

    A number p satisfies the Pseudo Selfridge condition if

    1. p is odd,
    2. p ≡ ± 1 (mod 5),
    3. 2^(p-1) ≡ 1 (mod p)
    4. (p-1).fib ≡ 0 (mod p)

    This is a variant of the condition that is tested in the PSW conjecture, and appears in the wiki page mentioned above.

    Note: this is non-standard terminology.

    Instances For

      PSW conjecture (Selfridge's test) Let $p$ be an odd number, with $p \equiv \pm 2 \pmod{5}$, $2^{p-1} \equiv 1 \pmod{p}$ and $F_{p+1} \equiv 0 \pmod{p}$, then $p$ is a prime number.

      Selfridge's test variant: Let $p$ be an odd number, with $p \equiv \pm 1 \pmod{5}$, $2^{p-1} \equiv 1 \pmod{p}$ and $F_{p-1} \equiv 0 \pmod{p}$, then $p$ is a prime number.

      This test does not work.

      Selfridge's test variant: Let $p$ be an odd number, with $p \equiv \pm 1 \pmod{5}$, $2^{p-1} \equiv 1 \pmod{p}$ and $F_{p-1} \equiv 0 \pmod{p}$, then $p$ is a prime number.

      The number $6601$ is a conterexample to this test satisfying $6601 ≡ 1 \mod 5$

      Selfridge's test variant: Let $p$ be an odd number, with $p \equiv \pm 1 \pmod{5}$, $2^{p-1} \equiv 1 \pmod{p}$ and $F_{p-1} \equiv 0 \pmod{p}$, then $p$ is a prime number.

      The number $30889$ is a conterexample to this test satisfying $30889 ≡ - 1 \mod 5$

      Selfridge's conjectures about Fermat numbers #

      OEIS A046052 The number of distinct prime factors of nth Fermat number. Known terms: 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 4, 5

      Equations
      Instances For

        Selfridge conjectured that the number of prime factors of the n-th Fermat number does not grow monotonically in $n$.

        Selfridge conjectured that the number of prime factors of the n-th Fermat number does not grow monotonically in $n$.

        A sufficient condition for this conjecture to hold is that there exists a Fermat prime larger than 65537.