This site is supported by donations to The OEIS Foundation.

Omega(n), number of prime factors of n (with multiplicity)

From OeisWiki
(Redirected from Excess of n)
Jump to navigationJump to search


This article needs more work.

Please help by expanding it!


The function Ω(n) counts the number of prime factors of n (with multiplicity), where n is a positive integer, each distinct prime factor of n being counted as many times as the number of its positive powers that divide n.

From the canonical prime factorization of n

n=i=1ω(n)piαi,

where ω(n) is the number of distinct prime factors of n and each αi=νpi(n), where νpi(n) is the pi-adic order of n, we have

Ω(n)i=1ω(n)αi=i=1ω(n)νpi(n)=pnpprimeνp(n),

where νp(n) is the p-adic order of n, i.e. the highest exponent ν of prime number p such that pν divides n.


For example, for n=44100=(37)2(25)2=22325272 we have Ω(44100)=Ω(22325272)=8, as the eight prime factors (with repetition) of n are 2, 2, 3, 3, 5, 5, 7, and 7.

Obviously Ω(1)=0 since 1 is the product of no primes, and for p prime we have Ω(p)=1 since a prime has only one prime factor (itself).

Formulae

Algebraically, we can define Ω(n) for composite n as

Ω(n)=i=1π(n)j=1logpin[pij|n],

or somewhat more efficiently, using short-circuit evaluation to avoid calculating logpin unnecessarily, as

Ω(n)=i=1π(n)[pi|n](1+j=2logpin[pij|n]),

where π(n) is the prime counting function, [] is the Iverson bracket, pi is the ith prime. But of course it is far more efficient to compute the prime factorization of n and then from that determine the value of Ω(n).

Properties

Ω(n) is a completely additive arithmetic function, i.e.

Ω(mn)=Ω(m)+Ω(n), m1, n1.

If n is a squarefree number, then Ω(n)=ω(n), otherwise Ω(n)>ω(n) (hence the capital letter for the number of prime factors (with repetition) function and the lowercase letter for the number of distinct prime factors function).[1]

Liouville's function

Liouville's function, expressing the parity of Ω(n),

λ(n)(1)Ω(n)

is +1 when Ω(n) is even and -1 when Ω(n) is odd.

Excess of n

Ω(n)ω(n), n1, excess of n = number of prime factors of n (with multiplicity) - number of prime factors of n (without multiplicity). (See A046660.)

{0, 0, 0, 1, 0, 0, 0, 2, 1, 0, 0, 1, 0, 0, 0, 3, 0, 1, 0, 1, 0, 0, 0, 2, 1, 0, 2, 1, 0, 0, 0, 4, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 1, 1, 0, 0, 3, 1, 1, 0, 1, 0, 2, 0, 2, 0, 0, 0, 1, 0, 0, 1, 5, 0, 0, 0, ...}

Characteristic function of nonsquarefree numbers

The complement q¯(n)=1q(n) of the quadratfrei function q(n), q¯(n)χ{nonsquarefree}(n)sgn[Ω(n)ω(n)], n1, is the characteristic function of nonsquarefree numbers, sgn(n) being the sign function.

Characteristic function of squarefree numbers

The quadratfrei function q(n)1q¯(n)χ{squarefree}(n)1sgn[Ω(n)ω(n)], n1 is the characteristic function of squarefree numbers, sgn(n) being the sign function.

Sequences

Ω(n), n1, Omega(n), number of prime factors of n (with multiplicity). (See A001222.)

{0, 1, 1, 2, 1, 2, 1, 3, 2, 2, 1, 3, 1, 2, 2, 4, 1, 3, 1, 3, 2, 2, 1, 4, 2, 2, 3, 3, 1, 3, 1, 5, 2, 2, 2, 4, 1, 2, 2, 4, 1, 3, 1, 3, 3, 2, 1, 5, 2, 3, 2, 3, 1, 4, 2, 4, 2, 2, ...}

i=1nΩ(i), n1, summatory Omega function, number of prime factors of n! (with multiplicity). (See A022559(n),n1.)

{0, 1, 2, 4, 5, 7, 8, 11, 13, 15, 16, 19, 20, 22, 24, 28, 29, 32, 33, 36, 38, 40, 41, 45, 47, 49, 52, 55, 56, 59, 60, 65, 67, 69, 71, 75, 76, 78, 80, 84, 85, 88, 89, 92, 95, ...}

Liouville's function λ(n)(1)Ω(n), n1. (See A008836.)

{1, -1, -1, 1, -1, 1, -1, -1, 1, 1, -1, -1, -1, 1, 1, 1, -1, -1, -1, -1, 1, 1, -1, 1, 1, 1, -1, -1, -1, -1, -1, -1, 1, 1, 1, 1, -1, 1, 1, 1, -1, -1, -1, -1, -1, 1, -1, -1, 1, -1, 1, -1, -1, 1, 1, 1, 1, 1, ...}

The partial sums L(n)i=1nλ(i)=i=1n(1)Ω(i), n1, summatory Liouville function. (See A002819 for n1.)

{1, 0, -1, 0, -1, 0, -1, -2, -1, 0, -1, -2, -3, -2, -1, 0, -1, -2, -3, -4, -3, -2, -3, -2, -1, 0, -1, -2, -3, -4, -5, -6, -5, -4, -3, -2, -3, -2, -1, 0, -1, -2, -3, -4, -5, -4, -5, -6, -5, -6, -5, -6, -7, -6, -5, ...}

ω(n), n1, number of prime factors of n (without multiplicity), number of distinct prime factors of n. (See A001221.)

{0, 1, 1, 1, 1, 2, 1, 1, 1, 2, 1, 2, 1, 2, 2, 1, 1, 2, 1, 2, 2, 2, 1, 2, 1, 2, 1, 2, 1, 3, 1, 1, 2, 2, 2, 2, 1, 2, 2, 2, 1, 3, 1, 2, 2, 2, 1, 2, 1, 2, 2, 2, 1, 2, 2, 2, 2, 2, 1, 3, 1, 2, 2, 1, 2, 3, 1, 2, ...}

q¯(n)χ{nonsquarefree}(n)sgn[Ω(n)ω(n)], n1, (0, or 1 if n has nonunitary prime divisors,) nonquadratfrei function, characteristic function of nonsquarefree numbers. (See A107078.)

{0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, ...}

q(n)1q¯(n)χ{squarefree}(n)1sgn[Ω(n)ω(n)], n1, (0, or 1 if n has unitary prime divisors only,) quadratfrei function, characteristic function of squarefree numbers. (See A008966.)

{1, 1, 1, 0, 1, 1, 1, 0, 0, 1, 1, 0, 1, 1, 1, 0, 1, 0, 1, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 1, 0, 0, 1, 1, 1, ...}

See also


Notes

  1. Mathematica uses ν(n) for the latter. Only in the documentation for PrimeNu have I seen this usage. Ω(n) is of course in that program implemented as PrimeOmega[n].