An asymptotic formula for the number of totients
Counting totient values up to x gets an exact leading formula, and doubling x doubles the count in the limit.
Euler's totient of a number counts the smaller numbers that share no factor with it. Many numbers are never a totient, and many numbers share the same one. This paper proves a formula whose ratio to the count of distinct totient values up to x tends to 1. It also proves that stretching x by any fixed factor stretches the count by the same factor in the limit. That answers a 1976 question of Erdős and Hall.
The explanation
Take the number 9 and list the numbers from 1 to 9 that share no factor with it. They are 1, 2, 4, 5, 7 and 8. There are six, so the totient of 9 is 6. Euler's totient of a whole number counts exactly these numbers. Different starting numbers can give the same answer. The totients of 7, 9, 14 and 18 are all 6. Some numbers are never an answer. Up to 30, the totient values are 1, 2, 4, 6, 8, 10, 12, 16, 18, 20, 22, 24, 28, 30. So 14 and 26 are skipped.
How many numbers up to some limit x are totient values? Call that count V(x). Up to 100 there are 38. Up to 1,000 there are 291. Up to one million there are 180,184. The share keeps falling, from 38% to 29% to about 18%. Pillai proved in 1929 that this share tends to zero.
Finding the exact size of V(x) took a long chain of work. A prime p has totient p − 1. So V(x) is at least about the count of primes up to x. Erdős, then Erdős and Hall, then Pomerance tightened the bounds. In 1988 Maier and Pomerance found the leading constant, 0.8178146…, in a rough formula. In 1998 Ford went further. His formula was right up to a bounded factor. That factor always stays between two fixed positive numbers. Nobody knew what it actually was.
That gap hid a simple question. If you double the limit x, does the count of totient values double too? Erdős and Hall asked this in 1976, for every fixed stretch factor c above 1. My own counts lean that way, slowly. Going from 1,000 to 2,000 multiplies the count by about 1.87. Going from 10,000 to 20,000 gives about 1.89. Going from 500,000 to one million gives about 1.94. Numbers like these settle nothing. Ford proved that the stretched range always adds a comparable number of new values. He could not pin down the limiting ratio.
This paper proves an asymptotic formula for V(x)Source 1. Asymptotic means the ratio of the two sides tends to 1 as x grows. The formula is Ford's scale times a coefficient. The coefficient depends on x only through a number between 0 and 1, called the phaseSource 2. It is built from finite sums over primes and whole numbers, followed by a limitSource 3. It always stays between two fixed positive bounds. From this, the paper proves that V(cx)/V(x) tends to c for every fixed c above 0Source 1. That answers Erdős and Hall's question with a yes.
The hard part is collisions. Counting numbers with a given pattern of prime factors is the standard tool. But that counts starting numbers, not distinct values. Since 7, 9, 14 and 18 all give 6, counting starting numbers overcounts the value 6. The paper lists a typical number's primes from largest to smallestSource 4. The large primes can be counted smoothly, like measuring a volume. The last few primes stay small, and different choices of them may give the same totient. The paper keeps these small tails exactly and counts each resulting value once. That bookkeeping produces the coefficient. The paper also shows that collisions among the long front parts are rare in totalSource 5.
The formula has limits a reader might miss. The coefficient is a limit of finite computations, not a single closed number. The paper does not claim the coefficient changes smoothly with the phaseSource 6. A companion result counts values whose smallest starting number lies in a given range. It gives positive counts for two such ranges and leaves the others openSource 7. An older Erdős question, whether that smallest starting number can be arbitrarily large relative to its value, remains unresolved hereSource 8.
How sure is this? A computer proof checker called Lean has checked a formal version of the main result. It covers the explicit formula, the doubling result for every fixed c, and the companion counts. No specialists have published a review yet.
What it doesn't show. This does not give the coefficient as one closed number or say how close the formula is at a given x.
Where it came from
This result comes from an unreleased OpenAI model, published in the openai/math release on 6 October 2026.
Hype check
Major if it holds. A Lean formalization of the main statements is listed, but specialists have not published a review. The coefficient is defined as a limit, not computed as a number. No error size is given at any fixed x.
Words used
- Euler's totient
- For a whole number n, the count of numbers from 1 to n that share no factor with n.
- Totient value
- A number that is the totient of at least one whole number.
- Asymptotic formula
- A formula whose ratio to the true count tends to 1 as the count's limit grows.
- Phase
- A number between 0 and 1, computed from x, on which the paper's coefficient depends.
- Collision
- Two different starting numbers that have the same totient.
- Least preimage
- The smallest whole number whose totient equals a given value.
The original paper
- An asymptotic formula for the number of totients (PDF, opens in a new tab) September 25, 2026
All quoted lines (8)
-
We obtain an explicit asymptotic equivalent and prove the fixed-scale limit, thereby answering this question of Erd\Hos and Hall positively.
An asymptotic formula for the number of totients Back to text -
The following theorem resolves its bounded multiplicative uncertainty by an explicitly constructed function of the phase .
An asymptotic formula for the number of totients Back to text -
It is defined in … by bounded prime and integer sums, inclusion–exclusion, and a uniformly convergent limit
An asymptotic formula for the number of totients Back to text -
Near its last coordinates the primes remain discrete, however, and several tail factorizations may give the same totient. We retain these tails exactly and take the volume of the union of the regions that they permit.
An asymptotic formula for the number of totients Back to text -
Second, collisions between different long prefixes have negligible total multiplicity.
An asymptotic formula for the number of totients Back to text -
No regularity of is asserted or needed.
An asymptotic formula for the number of totients Back to text -
We do not determine which other integers satisfy this seed condition.
An asymptotic formula for the number of totients Back to text -
In particular, the separate question whether is unbounded, posed in, remains unresolved here.
An asymptotic formula for the number of totients Back to text
Other sources
- OpenAI, “An asymptotic formula for the number of totients”, openai/math preprint (25 September 2026)
We also prove that as for every fixed , answering a question of Erd\Hos and Hall.
- S. S. Pillai, “On some functions connected with φ(n)”, Bulletin of the American Mathematical Society 35 (1929), 832–836
- P. Erdős and R. R. Hall, “Distinct values of Euler's φ-function”, Mathematika 23 (1976), 1–3
- H. Maier and C. Pomerance, “On the number of distinct values of Euler's φ-function”, Acta Arithmetica 49 (1988), 263–275
- K. Ford, “The distribution of totients”, Ramanujan Journal 2 (1998), 67–151; revised version arXiv:1104.3264v2 (2013)
- C. Pomerance, “On the distribution of the values of Euler's function”, Acta Arithmetica 47 (1986), 63–70