Double factorial


In mathematics, the double factorial or semifactorial of a number is the product of all the integers from 1 up to that have the same parity as. That is,
For even the double factorial is
and for odd it is
For example,. The zero double factorial as an empty product.
The sequence of double factorials for even = starts as
The sequence of double factorials for odd = starts as
The term odd factorial is sometimes used for the double factorial of an odd number.

History and usage

states that the double factorial was originally introduced in order to simplify the expression of certain trigonometric integrals arising in the derivation of the Wallis product. Double factorials also arise in expressing the volume of a hypersphere, and they have many applications in enumerative combinatorics. They occur in Student's -distribution, though Gosset did not use the double exclamation point notation.

Relation to the factorial

Because the double factorial only involves about half the factors of the ordinary factorial, its value is not substantially larger than the square root of the factorial, and it is much smaller than the iterated factorial.
The factorial of a non-zero may be written as the product of two double factorials:
and therefore
where the denominator cancels the unwanted factors in the numerator.
For an even non-negative integer,, the double factorial may be expressed as
Combining these two, For odd,, the double factorial may be written
For an odd positive integer,, the double factorial may be expressed in terms of -permutations of as

Applications in enumerative combinatorics

Double factorials are motivated by the fact that they occur frequently in enumerative combinatorics and other settings. For instance, for odd values of counts
and list several additional objects with the same counting sequence, including "trapezoidal words", height-labeled Dyck paths, height-labeled ordered trees, "overhang paths", and certain vectors describing the lowest-numbered leaf descendant of each node in a rooted binary tree. For bijective proofs that some of these objects are equinumerous, see and.
The even double factorials give the numbers of elements of the hyperoctahedral groups

Extensions

Negative arguments

The ordinary factorial, when extended to the gamma function, has a pole at each negative integer, preventing the factorial from being defined at these numbers. However, the double factorial of odd numbers may be extended to any negative odd integer argument by inverting its recurrence relation
to give
Using this inverted recurrence, −1!! = 1, −3!! = −1, and −5!! = ; negative odd numbers with greater magnitude have fractional double factorials. In particular, this gives, when is an odd number,

Complex arguments

Disregarding the above definition of for even values of , the double factorial for odd integers can be extended to most real and complex numbers by noting that when is a positive odd integer then
From this one can derive an alternative definition of for non-negative even integer values of :
with the value for 0!! in this case being
The expression found for is defined for all complex numbers except the negative even integers. Using it as the definition, the volume of an -dimensional hypersphere of radius can be expressed as

Additional identities

For integer values of,
Using instead the extension of the double factorial of odd numbers to complex numbers, the formula is
Double factorials can also be used to evaluate integrals of more complicated trigonometric polynomials.
Double factorials of odd numbers are related to the gamma function by the identity:
Some additional identities involving double factorials of odd numbers are:
An approximation for the ratio of the double factorial of two consecutive integers is
This approximation gets more accurate as increases.

Generalizations

Definitions

In the same way that the double factorial generalizes the notion of the single factorial, the following definition of the integer-valued multiple factorial functions, or -factorial functions, extends the notion of the double factorial function for :

Alternative extension of the multifactorial

Alternatively, the multifactorial can be extended to most real and complex numbers by noting that when is one more than a positive multiple of then
This last expression is defined much more broadly than the original. In the same way that is not defined for negative integers, and is not defined for negative even integers, is not defined for negative multiples of. However, it is defined for all other complex numbers. This definition is consistent with the earlier definition only for those integers satisfying .
In addition to extending to most complex numbers , this definition has the feature of working for all positive real values of . Furthermore, when, this definition is mathematically equivalent to the function, described above. Also, when, this definition is mathematically equivalent to the alternative extension of the double factorial.

Generalized Stirling numbers expanding the multifactorial functions

A class of generalized Stirling numbers of the first kind is defined for by the following triangular recurrence relation:
These generalized -factorial coefficients then generate the distinct symbolic polynomial products defining the multiple factorial, or -factorial functions,, as
The distinct polynomial expansions in the previous equations actually define the -factorial products for multiple distinct cases of the least residues for.
The generalized -factorial polynomials, where, which generalize the Stirling convolution polynomials from the single factorial case to the multifactorial cases, are defined by
for. These polynomials have a particularly nice closed-form ordinary generating function given by
Other combinatorial properties and expansions of these generalized -factorial triangles and polynomial sequences are considered in.

Exact finite sums involving multiple factorial functions

Suppose that and are integer-valued. Then we can expand the next single finite sums involving the multifactorial, or -factorial functions,, in terms of the Pochhammer symbol and the generalized, rational-valued binomial coefficients as
and moreover, we similarly have double sum expansions of these functions given by
The first two sums above are similar in form to a known non-round combinatorial identity for the double factorial function when given by.
Additional finite sum expansions of congruences for the -factorial functions,, modulo any prescribed integer for any are given by.