TOPICS
Search

Erdős Unconventional Number Theoretic Functions


The Erdős unconventional number theoretic functions are two number theoretic functions f(n) and F(n) defined using the prime factors of a positive integer n (Erdős 1984). The function f(n) adds, for each prime factor p of n, the greatest prime power of base p at most n,

 f(n)=sum_(p|n)p^(|_lnn/lnp_|),
(1)

where the sum runs over distinct primes and |_x_| is the floor function. The first values for n=1, 2, ... are 0, 2, 3, 4, 5, 7, 7, 8, 9, 13, 11, 17, ... (OEIS A339378).

The value F(n) is the greatest sum of pairwise relatively prime integers between 2 and n, with every prime factor of each summand required to divide n. The empty selection gives F(1)=0. Selecting the maximal prime powers in f(n) shows that f(n)<=F(n), with equality when n is a prime power. Erdős (1984) showed that for every positive integer k there are integers with k distinct prime factors satisfying F(n)=n and integers with k distinct prime factors satisfying F(n)=f(n).

Kitamura (2026) gave Lean proofs that on a set of natural density 1,

f(n)=o(nlnlnn)
(2)
F(n)∼1/2nlnlnn,
(3)

and that the maximum m(x)=max_(1<=n<=x)f(n) satisfies

 m(x)∼(xlnx)/(lnlnx).
(4)

Erdős (1984) had proved the latter equivalence along a subsequence. Kitamura also established that (xh(x)-m(x))/x->infty, where h(x) is the maximum number of distinct prime factors among positive integers at most x.

Erdős asked whether m(x)=max_(1<=n<=x)F(n) for all sufficiently large x. Barreto found that the maxima differ at x=210 (Bloom 2026). With summands at least 2, the maxima there are 383 and 442, respectively. Pauzner (2026) gave a Lean proof that they differ for arbitrarily large x.

Lipkovitz (2026ab) obtained two explicit asymptotic equivalents. The number of n with 1<=n<x and f(n)=F(n) is asymptotic to

 sum_(m)int_(I_m(x))(du)/(lnu),
(5)

a sum of logarithmic integrals indexed by candidate cofactors m of the greatest prime factor. Put Y=exp((lnx)^(2/3)). The sum ranges over 1<=m<x/Y with at most |_(lnx)^(1/20)_| distinct prime factors. The region I_m(x) consists of the real u satisfying max(Y,P^+(m))<u<x/m that pass a finite product test, with P^+(m) the greatest prime factor and P^+(1)=0. Treat u and the distinct prime factors of m as bases. Every product between 2 and mu formed from these bases must be at most the sum of the greatest pure powers at most mu of the bases used in that product. The equivalent for the weighted sum is

 H(x)=sum_(1<=n<x)(f(n))/n∼xsum_(p<=(lnx)^2)(e^(-r_p))/p(r_p+(lnp)/(p-1)),
(6)

where the second sum runs over primes and r_p=lnx-|_lnx/lnp_|lnp. The results hold as x tends to infinity through positive integers. Lipkovitz credits OpenAI Codex with the arguments and formalizations, which were checked by the Palomar Registry.

Erdős (1984) proved H(x)=O(xlnlnlnx) and gave a lower bound of order xlnlnlnlnx for arbitrarily large x. These questions are collected as problem 878 in the Erdős problems database (Bloom 2026). Part (vi) asks whether H(x)=O(xlnlnlnlnx) and remains open.


See also

Erdős Problems, Number Theoretic Function, Prime Power

Explore with Wolfram|Alpha

References

Bloom, T. F. "Erdős Problem 878." Accessed Dec. 1, 2026. https://www.erdosproblems.com/878.Erdős, P. "On Two Unconventional Number Theoretic Functions and on Some Related Problems." In Calcutta Mathematical Society Diamond-cum-Platinum Jubilee Commemoration Volume (1908-1983), Part I. Calcutta, India: Calcutta Mathematical Society, pp. 113-121, 1984. https://users.renyi.hu/~p_erdos/1984-16.pdf.Kitamura, K. "Erdős Problem #878 in Lean." 2026. https://github.com/KitaKen1/erdos-878-lean/tree/d4a8eecf0606b3eee7342c2040a31c8c30eb5d76.Lipkovitz, R. "An Asymptotic Equivalent for the Harmonic Sum in Erdős Problem 878(v)." Palomar Registry, Nov. 19, 2026a. https://data.palomar-registry.org/entries/PALOMAR-2026-11-19-000034-v1.json.Lipkovitz, R. "An Asymptotic Formula for the Equality Count in Erdős Problem 878(iv)." Palomar Registry, Nov. 19, 2026b. https://data.palomar-registry.org/entries/PALOMAR-2026-11-19-000035-v1.json.Pauzner, I. "Erdős Problem 878(iii)." 2026. https://github.com/ilpauzner/formal-conjectures/blob/b7742e7d900ca30503c0dd4c940625a6d9cf0a0c/FormalConjectures/ErdosProblems/878.lean#L435.Sloane, N. J. A. Sequence A339378 in "The On-Line Encyclopedia of Integer Sequences."

Cite this as:

Weisstein, Eric W. "Erdős Unconventional Number Theoretic Functions." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/ErdosUnconventionalNumberTheoreticFunctions.html

Subject classifications