Lehmer's totient problem: is there a composite n with φ(n) dividing n − 1?
On this page17 sections
Difficulty 72: ninety years old with no line of attack beyond narrowing the shape of a hypothetical solution (Carmichael, squarefree, at least 14 prime factors), comparable to the Hadamard conjecture (70.5) and below Lindelöf (74), where at least the exponent keeps moving. A single large example could settle it, which keeps it below the Landau-type problems (84 and up). Application value 4: pseudoprime-type conditions matter to primality testing, but no practice depends on the answer. Leverage 10: essentially stand-alone.
The problem
Is there a non-prime number n for which the count of numbers coprime to n divides n minus 1?
- 1For primes, the count equals n minus 1
- 2Does a composite number share this?
- 3An example needs 14+ odd prime factors
- 4None known, none ruled out
Euler's totient. For a positive integer , counts the numbers from to that share no factor with other than 1 (they are coprime to ). For example : the numbers 1, 3, 7, 9. If is prime, every number from 1 to is coprime to it, so , and in particular divides .
The question. Lehmer asked in 1932 whether this divisibility can happen for a composite (a whole number above 1 that is not prime): is there a composite with ? If not, the condition is an exact test for primality. In Lean: ∃ n > 1, ¬Prime n ∧ Nat.totient n ∣ n - 1.
Try a few. For a product of distinct primes, . For : , and 14 is not a multiple of 8. For : , and 560 is not a multiple of 320. Requiring to be a multiple of the whole product is a strong condition, and no composite example has ever been found.
What a solution would have to look like. Lehmer proved that a solution must be odd, have no repeated prime factor (squarefree) and have at least 7 distinct prime factors; Cohen and Hagis (1980) raised this to 14. Each divides and hence , which makes a Carmichael number: a composite that fools Fermat's primality test, because leaves remainder 1 on division by for every coprime to . If 3 divides a solution, it has more than 40 million prime factors (Burcsi, Czirbusz and Farkas, 2011). Luca and Pomerance (2011) showed that solutions, if any exist, are rare: roughly at most of them below .
Why it is stuck. These results narrow the shape of a solution without ruling it out, and the remaining candidates are far too large to search.
How an answer is checked. A yes-answer is one number with its factorization: Lean can compute from the factors and check the divisibility with integer arithmetic. A no-answer needs a proof for every . The problem is a cousin of the Agoh–Giuga conjecture, another congruence test for primes whose counterexamples would also have to be Carmichael numbers.
Go deeper
The full technical text.
Does there exist a composite integer such that Euler's totient divides ? For a prime the divisibility always holds, so the question is whether it characterizes primes.
Lean 4 statement in the Formal Conjectures corpus, where the open question is whether the existential holds:
theorem lehmer_totient :
∃ n > 1, ¬Prime n ∧ Nat.totient n ∣ n - 1
Words on this page (6)
- Euler's totient
- The number of integers from 1 to n that share no factor with n.
- composite number
- A whole number above 1 that is not prime.
- squarefree
- A number not divisible by the square of any prime.
- Carmichael number
- A composite number that fools a standard primality test based on Fermat's little theorem.
- coprime
- Having no common factor other than 1.
- Agoh–Giuga conjecture
- A related claim that a power-sum congruence detects primes.
New to this? Read first (2)
- Lehmer's totient problem (Wikipedia)Statement and known constraints.
- Carmichael number (Wikipedia)Why these numbers are the natural suspects.
Path to understanding
foundations → problemThe research entries this problem rests on, in the order to read them. Each links to its explainer.
- Start with
- Step 2
- Harmonic analysisTheory
- Step 3
- Then
- Lehmer's totient problem: is there a composite n with φ(n) dividing n − 1?The problem
State of the art
No composite solution is known. Lehmer (1932) showed a solution must be odd, squarefree, have at least 7 distinct prime factors and be a Carmichael number. Cohen and Hagis (1980) raised the prime-factor count to at least 14. Hagis (1988) showed that if divides a solution then it exceeds and has at least 298,848 prime factors; Burcsi, Czirbusz and Farkas (2011, Ann. Univ. Sci. Budapest. Sect. Comput. 35) raised this to more than and at least 40 million prime factors. Luca and Pomerance (2011) bound the number of solutions up to by roughly . Because solutions are rare or absent and any search must reach enormous sizes, neither computation nor current theory settles it.
Realistic applications
None. It is a clean test of what a congruence-type condition can say about primality, close in spirit to the primality tests (Fermat, Carmichael) that underlie cryptographic key generation, but no practice depends on the answer.
What counts as solved
Either a Lean proof of lehmer_totient (an explicit composite with , checkable by the kernel) or a Lean proof of its negation, i.e. that forces prime.
How it gets verified
To verify: Lean proofA formal proof checked by Lean 4 / Mathlib.
Statement: LehmerTotient.lehmer_totient in formal-conjectures: ∃ n > 1, ¬Prime n ∧ Nat.totient n ∣ n - 1. Mathlib has Nat.totient with a large API (Data.Nat.Totient), so no new definitions are needed. A positive answer is a certificate: an explicit plus its factorization, which Lean can verify (Nat.totient of a product of distinct primes is a product of , so the check reduces to big-integer arithmetic). A negative answer needs a genuine proof. Judge acceptance with Comparator against the pinned statement.
Claims
No claimed results on this problem.
Where the work is
A proof of nonexistence needs new structure theory; a counterexample would be found by a search constrained by the known shape (odd, squarefree, Carmichael, many primes).
Connected problems
- This problem is related to The Agoh–Giuga conjecture: a congruence that detects primesBoth ask whether a congruence characterizes primes, and any counterexample to either would have to be a Carmichael number.
Progress
- Jan 1, 2011Counting bound and the 3 | n casesource
Luca and Pomerance bound the number of solutions; Burcsi, Czirbusz and Farkas push the 3 | n case to enormous size (year only known).
- Jan 1, 1980At least 14 prime factorssource
Cohen and Hagis raise the bound on distinct prime factors (year only known).
- Jan 1, 1932Problem posed with first constraintssource
Lehmer shows a solution must be odd, squarefree, a Carmichael number and have at least 7 prime factors.