Skip to content
m·amathatlas
ExploreAboutOpen problemsCited authorsMy libraryFeedback
Sign in
FRENES
Loading views…Recent views only, across all languages. Vercel history is unavailable for this page. Repeat visits in the same tab are grouped for 30 minutes.
ShareLinkedInXFacebookWhatsApp
← All open problems
Unanswered question

Two problems about Fermat pseudoprimes

Number theory

Imported on November 28, 2026

The forum classified this question as unanswered when collected. This does not certify an open research problem; check the answers and revision history at the source.

Read the question with its definitions and background below. The source provides the full formulation and further discussion; the glossary and Wikipedia links offer additional reading aids.

Problem statement

For a given positive integer a>1a>1a>1, a composite number nnn is called a (Fermat) pseudoprime to base aaa if an−1≡1(modn)a^{n-1}\equiv1\pmod{n}an−1≡1(modn) I wonder whether the following two questions concerning pseudoprimes have been solved:

Question 1: For any positive integer a>1a>1a>1 and any sufficiently large prime ppp (depending on aaa), does there always exist a prime q≠pq\neq pq=p such that pqpqpq is a pseudoprime to base aaa ?

A comment in OEIS A085014 states that, by a construction of Erdős, one can prove that for a=2a=2a=2, for all odd primes ppp except those in {3,5,7,13}\{3,5,7,13\}{3,5,7,13}, there exists a corresponding prime qqq. However, I do not understand how this result follows from Erdős’s construction.

Erdős (1949) observed that if nnn is a pseudoprime to base aaa, then a primitive prime divisor ppp of an−1−1a^{n−1}−1an−1−1 (the existence of such ppp is guaranteed by a theorem of Bang) satisfies p>np>np>n, p≡1(modn−1)p\equiv 1\pmod{n-1}p≡1(modn−1) and pnpnpn is also a pseudoprime to base aaa. (The original statement only mentions the case a=2a=2a=2, but it holds for general aaa.)

However, when n=pn=pn=p is prime and aaa is a primitive root modulo ppp, this construction does not seem to ensure that an−1−1a^{n−1}−1an−1−1 has a primitive prime divisor different from ppp.

Update March 9: I found that the case a=2a=2a=2 was already proved by Rotkiewicz (1962), where the case p≡5(mod8)p\equiv 5 \pmod{8}p≡5(mod8) relied on a theorem of Schinzel. Rotkiewicz also proved that for a=3a=3a=3 and any prime p>3p>3p>3 with p≢5(mod12)p\not\equiv 5\pmod{12}p≡5(mod12), there exists a corresponding prime qqq.

Rotkiewicz further conjectured that for any prime p>13p>13p>13 and a>1a>1a>1, there always exists a prime q>pq>pq>p such that pqpqpq divides apq−aa^{pq}−aapq−a. This may be the earliest origin of Question 1.

Update March 11: I found that OEIS A085104 does not require q≠pq \neq p q=p. Therefore, even if ppp is the unique primitive prime divisor of ap−1−1a^{p-1} - 1ap−1−1, p2p^2p2 is a pseudoprime to base aaa for sufficiently large ppp. Hence, if the condition q≠pq \neq p q=p in Question 1 is removed, this result is indeed a corollary of Erdős's construction.

Question 2: For any positive integers a>1a>1a>1 and k>1k>1k>1, let Pk,a(x)P_{k,a}(x)Pk,a​(x) denote the number of pseudoprimes to base aaa that are products of kkk distinct primes and do not exceed xxx . Is it always true that

Pk,a(x)≫k,alog⁡x?P_{k,a}(x)\gg_{k,a} \log x \quad?Pk,a​(x)≫k,a​logx?

Erdős (1949) proved that infinitely many such pseudoprimes exist for any fixed k>1k>1k>1 and a=2a=2a=2. Szymiczek (1967) proved P2,2(x)≥log⁡x4log⁡2+O(1)(x→∞),P_{2,2}(x) \ge \frac{\log x}{4\log 2} + O(1) \quad (x \to \infty),P2,2​(x)≥4log2logx​+O(1)(x→∞), using a construction due to D.H. Lehmer (1936) (see the third footnote on page 348).These results can be extended to any integer a>1a>1a>1, and settles Question 2 in the case k=2k=2k=2.

Rotkiewicz (1972), using a theorem of Schinzel, showed that for any sufficiently large n≡4(mod8)n\equiv 4\pmod {8}n≡4(mod8), 2n−12^n−12n−1 has at least two distinct primitive prime divisors p,qp,qp,q such that p≡q≡1(modn)p\equiv q\equiv 1 \pmod{n}p≡q≡1(modn). Rotkiewicz noticed that 2n/2−12^{n/2}−12n/2−1 has also a divisor ttt such that t≡1(modn)t\equiv 1\pmod {n}t≡1(modn) and ttt is either prime or a product of two distinct primes, and proved that both ptptpt and qtqtqt are pseudoprimes to base 2.

In fact, pqpqpq and pqtpqtpqt should also be pseudoprimes, and at least one integer in {pt,pqt}\{pt,pqt\}{pt,pqt} has exactly three prime factors. Since ppp is a primitive prime divisor of 2n−12^n−12n−1, one can show that P3,2(x)≥log⁡x8log⁡2+O(1)(x→∞)P_{3,2}(x) \ge \frac{\log x}{8\log 2} + O(1) \quad (x \to \infty)P3,2​(x)≥8log2logx​+O(1)(x→∞)

This seems to strengthen Rotkiewicz’s original result, yielding P2,2​(x)+P3,2​(x)+P4,2​(x)≥7log⁡x8log⁡2+O(1)(x→∞).P_{2,2}​(x)+P_{3,2}​(x)+P_{4,2}​(x) \ge \frac{7\log x}{8\log 2} + O(1) \quad (x \to \infty).P2,2​​(x)+P3,2​​(x)+P4,2​​(x)≥8log27logx​+O(1)(x→∞).

A composite nnn is a super pseudoprime to base aaa if ad−1≡1(modd)a^{d−1}\equiv 1 \pmod{d}ad−1≡1(modd) for every divisor ddd of nnn, which is a special class of Fermat pseudoprimes. Phong (1987) proved (see page 125-129) SP3,a(x)≥log⁡x4r(a)log⁡a+O(1)(x→∞),SP_{3,a}(x) \ge \frac{\log x}{4r(a)\log a} + O(1) \quad (x \to \infty),SP3,a​(x)≥4r(a)logalogx​+O(1)(x→∞), where SPk,a​(x)SP_{k,a}​(x)SPk,a​​(x) counts the super pseudoprimes to base aaa that are products of kkk distinct primes and do not ecxeed xxx, and r(a)r(a)r(a) denotes the ratio of aaa to the largest square divisor of aaa. This result resolves Question 2 for the case k=3k=3k=3.

However, for k>3k>3k>3, I am not aware of any known results that give an affirmative answer. It appears to follow from a result of Somer (2004) that , when r(a)r(a)r(a) is odd, SP4,a(x)≫alog⁡xlog⁡log⁡x(x→∞).SP_{4,a}(x) \gg_{a} \frac{\log x}{\log\log x} \quad (x \to \infty).SP4,a​(x)≫a​loglogxlogx​(x→∞).

Statement and context adapted from MathOverflow · Lingling Tong

CC BY-SA 4.0 · Formatting adapted; mathematical formulas preserved · Source history

A few useful definitions

Prime number
An integer greater than 1 whose only positive divisors are 1 and itself. Examples include 2, 3, 5 and 7.

Topics : nt.number-theory · prime-numbers · pseudoprimes

Authors listed by the source : Lingling Tong

Sources and original status

  • MathOverflow Status in source : unanswered at collection

Last activity on the question : March 23, 2026

Coverage, sources and method

This count measures imported entries, including distinct variants. It is not a count of all open mathematical questions worldwide. One entry may belong to several fields and sources.

This directory is neither exhaustive nor updated in real time. “Reported open” describes the source classification observed at import; imported entries have not each undergone independent mathematical verification. The 32 explained entries were reviewed separately.

Formal Conjectures: only “research open” statements with no reported formal proof are retained; their tag is checked in a pinned repository revision. Variants remain distinct. A “sorry” placeholder is not sufficient to establish open status.

Erdős: solved or independent problems and entries with a Lean solution are excluded, including “open (Lean)”. Exact matches to the main Formal Conjectures statements are merged.

Open Problem Garden: the open index is checked against the solved index; spam, identified clones and some outdated statuses are excluded. Statements and definition context are attributed to their original pages; formulas are preserved and the content remains under the GFDL. Recognized duplicates across sources are merged; this does not resolve every mathematical equivalence.

OEIS: direct extraction of conjectural comments and formulas, one entry per sequence, excluding mentioned resolutions. MathOverflow and Math Stack Exchange: questions classified as unanswered by their API, excluding closed posts and non-research categories. They remain distinct from problems reported open. This is a partial, dated collection; every entry credits its authors and license.

Documented exclusions account for recent announcements and conflicting statuses. A stronger variant or a special case can remain open after a different statement is settled.

Attribution: The Formal Conjectures Authors; teorth/erdosproblems and contributors; Open Problem Garden and contributors. Each source retains its license.

  • Formal Conjectures · 1,924 · Apache-2.0 / CC-BY-4.0
  • Erdős Problems (teorth) · 622 · Apache-2.0
  • Open Problem Garden · 404 · GFDL (source content); only title/category/link metadata imported
  • OEIS · 18,857 · CC BY-SA 4.0
  • MathOverflow · 19,035 · CC BY-SA (version on each entry)
  • Mathematics Stack Exchange · 35 · CC BY-SA (version on each entry)
Report a development or correction
mathatlas

An independent atlas to understand, read, and question research.

The papers present claimed results at different stages of verification.
NewsletterShare feedbackAbout Data and privacy
Created by Sonny Mupfuni