![]() | ||
In mathematics, the product of all the integers from 1 up to some non-negative integer n that have the same parity (odd or even) as n is called the double factorial or semifactorial of n and is denoted by n!!. That is,
Contents
- Relation to the factorial
- Negative arguments
- Complex arguments
- Applications in enumerative combinatorics
- Additional identities
- References
(A consequence of this definition is that 0!! = 1, as an empty product.)
Therefore, for even n the double factorial is
and for odd n it is
For example, 9!! = 9 × 7 × 5 × 3 × 1 = 945.
The double factorial should not be confused with the factorial function iterated twice, which is written as (n!)! and not n!!
The sequence of double factorials for even n = 0, 2, 4, 6, 8,... starts as
1, 2, 8, 48, 384, 3840, 46080, 645120,... (sequence A000165 in the OEIS)The sequence of double factorials for odd n = 1, 3, 5, 7, 9,... starts as
1, 3, 15, 105, 945, 10395, 135135,... (sequence A001147 in the OEIS)Merserve (1948) (possibly the earliest publication to use double factorial notation) 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.
The term odd factorial is sometimes used for the double factorial of an odd number.
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 n!, and it is much smaller than the iterated factorial (n!)!.
For an even positive integer n = 2k, k ≥ 0, the double factorial may be expressed as
For odd n = 2k − 1, k ≥ 1, it has the expressions
In this expression, the first denominator equals (2k)!! and cancels the unwanted even factors from the numerator.
For an odd positive integer n = 2k − 1, k ≥ 1, the double factorial may be expressed in terms of k-permutations of 2k as
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!! = 1/3; negative odd numbers with greater magnitude have fractional double factorials. In particular, this gives, when n is an odd number,
Complex arguments
Disregarding the above definition of n!! for even values of n, the double factorial for odd integers can be extended to most real and complex numbers z by noting that when z is a positive odd integer then
From this one can derive an alternative definition of z!! for non-negative even integer values of z:
with the value for 0!! in this case being
The expression found for z!! is defined for all complex numbers except the negative even integers. Using it as the definition, the volume of an n-dimensional hypersphere of radius R can be expressed as
Applications in enumerative combinatorics
Double factorials are motivated by the fact that they occur frequently in enumerative combinatorics and other settings. For instance, n!! for odd values of n counts
Callan (2009) and Dale & Moon (1993) list several additional objects with the same counting sequence, including "trapezoidal words" (numerals in a mixed radix system with increasing odd radixes), 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 Rubey (2008) and Marsh & Martin (2011).
The even double factorials give the numbers of elements of the hyperoctahedral groups (signed permutations or symmetries of a hypercube)
Additional identities
For integral values of n,
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: