TOPICS
Search

Prime Nu Function


The prime nu function is the arithmetic function

 omega(n)=k
(1)

when the prime factorization of n is

 n=p_1^(alpha_1)...p_k^(alpha_k),
(2)

where the p_i are distinct. Thus omega(n) counts the number of distinct prime factors of n, without multiplicity, and omega(1)=0. It is implemented in the Wolfram Language as PrimeNu[n].

The first few values of omega(n) for n=1, 2, ... are 0, 1, 1, 1, 1, 2, 1, 1, 1, 2, 1, 2, 1, 2, 2, 1, 1, 2, 1, 2, ... (OEIS A001221, Kac 1959, Abramowitz and Stegun 1972). For example, omega(12)=2 because 12=2^2·3 has the two distinct prime factors 2 and 3. The sequence is the inverse Möbius transform of {chi_P(n)}, where chi_P is the characteristic function of the prime numbers (Sloane and Plouffe 1995, p. 22).

DistinctPrimeFactors

The function is strongly additive,

 omega(mn)=omega(m)+omega(n)
(3)

when m and n are relatively prime, while omega(p^alpha)=1 for every prime p and positive integer alpha. Some authors denote the function by nu(n) (Hardy and Wright 1979, p. 354). Care is needed, since nu(n) can instead denote the number of all divisors of n (Ore 1988, p. 86).

A sum involving omega(n) is

 sum_(n=1)^infty(2^(omega(n)))/(n^s)=(zeta^2(s))/(zeta(2s))
(4)

for s>1 (Hardy and Wright 1979, p. 255).

Let

 mu_omega(x)=1/xsum_(n<=x)omega(n).
(5)

An asymptotic series for this mean is

 mu_omega(x)∼lnlnx+B_1+sum_(k=1)^infty(-1+sum_(j=0)^(k-1)(gamma_j)/(j!))((k-1)!)/((lnx)^k),
(6)

where B_1 is the Mertens constant and the gamma_j are Stieltjes constants (Diaconis 1976, Knuth 2000, Diaconis 2002, Finch 2003). The corresponding variance has expansion

 var_x(omega)∼lnlnx+B_1^'+(c_1)/(lnx)+(c_2)/((lnx)^2)+...,
(7)

where

B_1^'=B_1-t-1/6pi^2
(8)
=-1.83568427...
(9)

(OEIS A091588), and

 t=sum_(k=1)^infty1/(p_k^2)=0.452247...
(10)

(OEIS A085548) is the prime zeta function P(2) (Finch 2003). The coefficients are

c_1=gamma-1+2sum_(k=1)^(infty)(lnp_k)/(p_k(p_k-1))
(11)
=gamma-1+2sum_(k=2)^(infty)mu(k)(zeta^'(k))/(zeta(k))
(12)
=1.0879488865...
(13)
c_2=-gamma_1-(gamma-1)[gamma+2sum_(k=1)^(infty)(lnp_k)/(p_k(p_k-1))]+2sum_(k=1)^(infty)((2p_k-1)(lnp_k)^2)/(2p_k(p_k-1)^2)
(14)
=3.3231293098....
(15)

Equivalently, the sums occurring here have values

u=sum_(k=1)^(infty)(lnp_k)/(p_k(p_k-1))=0.755366...
(16)
v=sum_(k=1)^(infty)((2p_k-1)(lnp_k)^2)/(2p_k(p_k-1)^2)=1.183780...
(17)

(Finch 2003).

The average order of omega(n) is lnlnn (Hardy 1999, p. 51). If n is a primorial, then

 omega(n)∼(lnn)/(lnlnn)
(18)

(Hardy and Wright 1979, p. 355). Its summatory function satisfies

 sum_(k=2)^nomega(k)=nlnlnn+B_1n+O(n/(lnn)),
(19)

where B_1 is the Mertens constant (Hardy and Ramanujan 1917; Hardy and Wright 1979, p. 355; Hardy 1999, p. 57). The first few values of the summatory function are 1, 2, 3, 4, 6, 7, 8, 9, 11, 12, 14, 15, 17, 19, 20, 21, ... (OEIS A013939). In addition,

 sum_(k=2)^n[omega(k)]^2=n(lnlnn)^2+O(nlnlnn)
(20)

(Hardy and Wright 1979, p. 357).

The first few products u_n of an odd number of distinct prime factors are 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 30, 31, 37, 41, 42, 43, 47, ... (OEIS A030059; Hardy 1999, p. 64; Ramanujan 2000, pp. xxiv and 21). They satisfy

 sum_(n=1)^infty1/(u_n^s)=1/2[(zeta(s))/(zeta(2s))-1/(zeta(s))]
(21)

(Hardy 1999, pp. 64-65). If U(x) counts the u_n<=x, then

 U(x)∼(3x)/(pi^2)
(22)

(Hardy 1999, pp. 64-65).


See also

Asymptotic Notation, Distinct Prime Factors, Erdős-Kac Theorem, Mertens Constant, Prime Factor, Prime Omega Function, Prime Zeta Function, Stieltjes Constants, Summatory Function

Explore with Wolfram|Alpha

References

Abramowitz, M. and Stegun, I. A. (Eds.). Handbook of Mathematical Functions with Formulas, Graphs, and Mathematical Tables, 9th printing. New York: Dover, p. 844, 1972.Diaconis, P. "Asymptotic Expansions for the Mean and Variance of the Number of Prime Factors of a Number n." Dept. Statistics Tech. Report 96, Stanford, CA: Stanford University, 1976.Diaconis, P. "G. H. Hardy and Probability???" Bull. London Math. Soc. 34, 385-402, 2002.Finch, S. "Two Asymptotic Series." Dec. 10, 2003. https://web.archive.org/web/20160419150604/http://www.people.fas.harvard.edu/~sfinch/csolve/asym.pdf.Hardy, G. H. Ramanujan: Twelve Lectures on Subjects Suggested by His Life and Work, 3rd ed. New York: Chelsea, 1999.Hardy, G. H. and Ramanujan, S. "The Normal Number of Prime Factors of a Number n." Quart. J. Math. 48, 76-92, 1917.Hardy, G. H. and Wright, E. M. §§22.10-22.11 in An Introduction to the Theory of Numbers, 5th ed. Oxford, England: Clarendon Press, pp. 255 and 354-358, 1979.Kac, M. Statistical Independence in Probability, Analysis and Number Theory. Washington, DC: Math. Assoc. Amer., p. 64, 1959.Knuth, D. E. Selected Papers on Analysis of Algorithms. Stanford, CA: CSLI Publications, pp. 338-339, 2000.Ore, O. Number Theory and Its History. New York: Dover, p. 86, 1988.Ramanujan, S. Collected Papers of Srinivasa Ramanujan (Ed. G. H. Hardy, P. V. S. Aiyar, and B. M. Wilson). Providence, RI: Amer. Math. Soc., 2000.Sloane, N. J. A. Sequences A001221/M0056, A013939, A030059, A085548, and A091588 in "The On-Line Encyclopedia of Integer Sequences."Sloane, N. J. A. and Plouffe, S. The Encyclopedia of Integer Sequences. San Diego, CA: Academic Press, 1995.

Cite this as:

Weisstein, Eric W. "Prime Nu Function." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/PrimeNuFunction.html

Subject classifications