This site is supported by donations to The OEIS Foundation.

Generating functions

From OeisWiki
(Redirected from Dirichlet generating function)
Jump to navigationJump to search

A generating function is a formal power series of some given form that generates (enumerates) a sequence.

Ordinary generating functions

[edit]

An ordinary generating function (OGF, ogf or o.g.f.,) i.e. a power series generating function, is a formal power series of the form

G{an}(x)n=0anxn,

which generates (enumerates) the sequence {an}n=0.

The ordinary generating function of the simplest sequence of positive integers, the all-1's sequence, is

G{n0}(x)=G{1n}(x)=n=0xn=11x

generates (enumerates) the sequence {an}n=0 equal to

{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, ...}.

By generating function, one typically refers to ordinary generating function.

Exponential generating functions

[edit]

An exponential generating function (EGF, egf or e.g.f.,) i.e. a Maclaurin series generating function, is a formal power series of the form

E{an}(x)n=0anxnn!,

which generates (enumerates) the sequence {an}n=0.

The exponential generating function of the simplest sequence of positive integers, the all-1's sequence, is

E{n0}(x)=E{1n}(x)=n=0xnn!=ex

generates (enumerates) the sequence {an}n=0 equal to

{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, ...},

hence the term exponential generating function.

Logarithmic generating functions?

[edit]

A logarithmic generating function (LGF, lgf or l.g.f.,) would be a formal power series of the form

L{an}(x)n=1an(1)n+1xnn,

which generates (enumerates) the sequence {an}n=1.

Note that we can't generate an a0 term since n, obviously, cannot be 0.

The logarithmic generating function of the simplest sequence of positive integers, the all-1's sequence, is

L{n0}(x)=L{1n}(x)=n=1(1)n+1xnn=log(1+x)

generates (enumerates) the sequence {an}n=1 equal to

{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, ...}.

Hyperbolic logarithmic generating functions?

[edit]

A hyperbolic logarithmic generating function would be a formal power series of the form

LH{an}(x)n=1anxnn,

which generates (enumerates) the sequence {an}n=1.

Note that we can't generate an a0 term since n, obviously, cannot be 0.

The hyperbolic logarithmic generating function of the simplest sequence of positive integers, the all-1's sequence, is

LH{n0}(x)=LH{1n}(x)=n=1xnn=log(11x)

generates (enumerates) the sequence {an}n=1 equal to

{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, ...},

(hence might be called hyperbolic logarithmic generating function by analogy with the term exponential generating function).

Logarithmic derivative of ordinary generating functions

[edit]

The logarithmic derivative of ordinary generating function (LGDOGF or lgdogf) for a sequence {an}n=0 is a function f(x) s.t.

G{an}(x)n=0anxn=exp(f(x)dx)

is the ordinary generating function of {an}n=0.

Logarithmic derivative of exponential generating functions

[edit]

The logarithmic derivative of exponential generating function (LGDEGF or lgdegf) for a sequence {an}n=0 is a function f(x) s.t.

E{an}(x)n=0anxnn!=exp(f(x)dx)

is the exponential generating function of {an}n=0.

Dirichlet generating functions

[edit]

A Dirichlet generating function (Dirichlet g.f.,) i.e. a Dirichlet series generating function, is a formal power series of the form[1]

D{an}(s)=n=1anns,

which generates (enumerates) the sequence {an}n=1.

Note that we can't generate an a0 term since n, obviously, cannot be 0.

The Dirichlet generating function of the simplest sequence of positive integers, the all-1's sequence, is

D{n0}(s)=D{1n}(s)=n=11ns=ζ(s) [2]

where ζ(s) is the zeta function, generates (enumerates) the sequence {an}n=1 equal to

{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, ...},

(hence might have been called zeta generating functions by analogy with the term exponential generating function).

The Dirichlet generating function is very well suited for arithmetic functions (number-theoretic functions) since Euler's zeta function encapsulates information about the prime factorization of the natural numbers.

For example, since the reciprocal of Euler's zeta function is obtained by Möbius inversion

1ζ(s)=n=1μ(n)ns,

where μ(n) is the Möbius function, it implies that, 1ζ(s) is the Dirichlet generating function of the Möbius function μ(n) for all positive integers.

Continued fraction generating functions

[edit]

See examples for double factorial.

Multivariate generating functions

[edit]

One can define generating functions in several variables, for series with several indices. These are referred to as multivariate generating functions (bivariate, trivariate, etc.).

Bivariate generating functions

[edit]

Pascal's triangle bivariate generating function

[edit]

For instance, since (1+x)n is the generating function for binomial coefficients for a fixed n, one may ask for a bivariate generating function that generates the binomial coefficients (nk) for all n and k.

To do this, consider (1+x)n as itself a series (in n), and find the generating function in y that has these as coefficients. Since the generating function for an is just 11ay, the generating function for the binomial coefficients is

G{(nk)}(x,y)=11(1+x)y=n=0(1+x)nyn=n=0k=0n(nk)xkyn

See also

[edit]

Notes

[edit]
  1. Note that since these are formal power series, it doesn't matter whether s is considered real or complex.
  2. Sondow, Jonathan and Weisstein, Eric W., Riemann Zeta Function, From MathWorld — A Wolfram Web Resource.
[edit]