This site is supported by donations to The OEIS Foundation.

Characteristic functions

From OeisWiki
(Redirected from Characteristic function)
Jump to navigationJump to search


This article page is a stub, please help by expanding it.


A characteristic function (or indicator function)

χA(x)χp(A)(x)𝐈A(x)𝐈p(A)(x)

returns 1 if x has the defining property p(A) of a given set A or 0 otherwise.

For example, the characteristic function of the primes χprime(n)=[Ω(n)=1]=π(n)π(n1) yields 1 only when n is prime (see A010051). Another example is the characteristic function of squarefree numbers q(n)=|μ(n)| (see A008966).

See Index to OEIS: Section Ch for a thorough listing of characteristic function sequences in the OEIS.