
In
mathematics
Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. There are many ar ...
, the double factorial of a number , denoted by , is the product of all the
positive integer
In mathematics, the natural numbers are the numbers 0, 1, 2, 3, and so on, possibly excluding 0. Some start counting with 0, defining the natural numbers as the non-negative integers , while others start with 1, defining them as the positiv ...
s up to that have the same
parity (odd or even) as .
That is,
Restated, this says that for even , the double factorial is
while for odd it is
For example, . The zero double factorial as an
empty product
In mathematics, an empty product, or nullary product or vacuous product, is the result of multiplication, multiplying no factors. It is by convention equal to the multiplicative identity (assuming there is an identity for the multiplication operat ...
.
The
sequence
In mathematics, a sequence is an enumerated collection of objects in which repetitions are allowed and order matters. Like a set, it contains members (also called ''elements'', or ''terms''). The number of elements (possibly infinite) is cal ...
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.
The term semifactorial is also used by
Knuth as a synonym of double factorial.
History and usage
In a 1902 paper, the physicist
Arthur Schuster
Sir Franz Arthur Friedrich Schuster (12 September 1851 – 14 October 1934) was a German-born British physicist known for his work in spectroscopy, electrochemistry, optics, X-radiography and the application of harmonic analysis to physics. S ...
wrote:
states that the double factorial was originally introduced in order to simplify the expression of certain
trigonometric integrals that arise in the derivation of the
Wallis product. Double factorials also arise in expressing the volume of a
hyperball and surface area of a
hypersphere
In mathematics, an -sphere or hypersphere is an - dimensional generalization of the -dimensional circle and -dimensional sphere to any non-negative integer .
The circle is considered 1-dimensional and the sphere 2-dimensional because a point ...
, and they have many applications in
enumerative combinatorics
Enumerative combinatorics is an area of combinatorics that deals with the number of ways that certain patterns can be formed. Two examples of this type of problem are counting combinations and counting permutations. More generally, given an inf ...
.
They occur in
Student's -distribution (1908), 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
In mathematics, the factorial of a non-negative denoted is the Product (mathematics), product of all positive integers less than or equal The factorial also equals the product of n with the next smaller factorial:
\begin
n! &= n \times ...
, 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 positive may be written as the product of two double factorials:
and therefore
where the denominator cancels the unwanted factors in the numerator. (The last form also applies when .)
For an even non-negative integer with , the double factorial may be expressed as
For odd with , combining the two previous formulas yields
For an odd positive integer with , the double factorial may be expressed in terms of
-permutations of or a
falling factorial
In mathematics, the falling factorial (sometimes called the descending factorial, falling sequential product, or lower factorial) is defined as the polynomial
\begin
(x)_n = x^\underline &= \overbrace^ \\
&= \prod_^n(x-k+1) = \prod_^(x-k) .
\end ...
as
Applications in enumerative combinatorics

Double factorials are motivated by the fact that they occur frequently in
enumerative combinatorics
Enumerative combinatorics is an area of combinatorics that deals with the number of ways that certain patterns can be formed. Two examples of this type of problem are counting combinations and counting permutations. More generally, given an inf ...
and other settings. For instance, for odd values of counts
*
Perfect matchings of the
complete graph
In the mathematical field of graph theory, a complete graph is a simple undirected graph in which every pair of distinct vertices is connected by a unique edge. A complete digraph is a directed graph in which every pair of distinct vertices i ...
for odd . In such a graph, any single vertex ''v'' has possible choices of vertex that it can be matched to, and once this choice is made the remaining problem is one of selecting a perfect matching in a complete graph with two fewer vertices. For instance, a complete graph with four vertices ''a'', ''b'', ''c'', and ''d'' has three perfect matchings: ''ab'' and ''cd'', ''ac'' and ''bd'', and ''ad'' and ''bc''.
Perfect matchings may be described in several other equivalent ways, including
involutions without fixed points on a set of items (
permutations
In mathematics, a permutation of a Set (mathematics), set can mean one of two different things:
* an arrangement of its members in a sequence or linear order, or
* the act or process of changing the linear order of an ordered set.
An example ...
in which each cycle is a pair)
or
chord diagrams (sets of chords of a set of points evenly spaced on a circle such that each point is the endpoint of exactly one chord, also called
Brauer Brauer or Bräuer is a surname of German origin, meaning "brewer". Notable people with the name include:-
* Alfred Brauer (1894–1985), German-American mathematician, brother of Richard
* Andreas Brauer (born 1973), German film producer
* Arik Bra ...
diagrams).
The numbers of matchings in complete graphs, without constraining the matchings to be perfect, are instead given by the
telephone number
A telephone number is the address of a Telecommunications, telecommunication endpoint, such as a telephone, in a telephone network, such as the public switched telephone network (PSTN). A telephone number typically consists of a Number, sequ ...
s, which may be expressed as a summation involving double factorials.
*
Stirling permutation
In combinatorics, combinatorial mathematics, a Stirling permutation of order ''k'' is a permutation of the multiset 1, 1, 2, 2, ..., ''k'', ''k'' (with two copies of each value from 1 to ''k'') with the additional property that, for each value ''i' ...
s, permutations of the
multiset
In mathematics, a multiset (or bag, or mset) is a modification of the concept of a set that, unlike a set, allows for multiple instances for each of its elements. The number of instances given for each element is called the ''multiplicity'' of ...
of numbers in which each pair of equal numbers is separated only by larger numbers, where . The two copies of must be adjacent; removing them from the permutation leaves a permutation in which the maximum element is , with positions into which the adjacent pair of values may be placed. From this recursive construction, a proof that the Stirling permutations are counted by the double permutations follows by induction.
Alternatively, instead of the restriction that values between a pair may be larger than it, one may also consider the permutations of this multiset in which the first copies of each pair appear in sorted order; such a permutation defines a matching on the positions of the permutation, so again the number of permutations may be counted by the double permutations.
*
Heap-ordered trees, trees with nodes labeled , such that the root of the tree has label 0, each other node has a larger label than its parent, and such that the children of each node have a fixed ordering. An
Euler tour
In graph theory, an Eulerian trail (or Eulerian path) is a trail in a finite graph that visits every edge exactly once (allowing for revisiting vertices). Similarly, an Eulerian circuit or Eulerian cycle is an Eulerian trail that starts and end ...
of the tree (with doubled edges) gives a Stirling permutation, and every Stirling permutation represents a tree in this way.
*
Unrooted binary trees with labeled leaves. Each such tree may be formed from a tree with one fewer leaf, by subdividing one of the tree edges and making the new vertex be the parent of a new leaf.
*
Rooted binary trees with labeled leaves. This case is similar to the unrooted case, but the number of edges that can be subdivided is even, and in addition to subdividing an edge it is possible to add a node to a tree with one fewer leaf by adding a new root whose two children are the smaller tree and the new leaf.
and list several additional objects with the same
counting sequence, including "trapezoidal words" (
numerals
A numeral is a figure (symbol), word, or group of figures (symbols) or words denoting a number. It may refer to:
* Numeral system used in mathematics
* Numeral (linguistics), a part of speech denoting numbers (e.g. ''one'' and ''first'' in English ...
in a
mixed radix system with increasing odd radixes), height-labeled
Dyck path
The Catalan numbers are a sequence of natural numbers that occur in various counting problems, often involving recursively defined objects. They are named after Eugène Catalan, though they were previously discovered in the 1730s by Minggatu ...
s, 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 proof
In combinatorics, bijective proof is a proof technique for proving that two sets have equally many elements, or that the sets in two combinatorial classes have equal size, by finding a bijective function that maps one set one-to-one onto the other ...
s that some of these objects are equinumerous, see and .
The even double factorials give the numbers of elements of the
hyperoctahedral group
A hyperoctahedral group is a type of mathematical Group (mathematics), group that arises as the symmetry group, group of symmetries of a hypercube or of a cross-polytope. It was named by Alfred Young (mathematician), Alfred Young in 1930. Groups ...
s (signed permutations or symmetries of a
hypercube
In geometry, a hypercube is an ''n''-dimensional analogue of a square ( ) and a cube ( ); the special case for is known as a ''tesseract''. It is a closed, compact, convex figure whose 1- skeleton consists of groups of opposite parallel l ...
)
Asymptotics
Stirling's approximation
In mathematics, Stirling's approximation (or Stirling's formula) is an asymptotic approximation for factorials. It is a good approximation, leading to accurate results even for small values of n. It is named after James Stirling, though a related ...
for the factorial can be used to derive an
asymptotic equivalent for the double factorial. In particular, since
one has as
tends to infinity that
Extensions
Negative arguments
The ordinary factorial, when extended to the
gamma function
In mathematics, the gamma function (represented by Γ, capital Greek alphabet, Greek letter gamma) is the most common extension of the factorial function to complex numbers. Derived by Daniel Bernoulli, the gamma function \Gamma(z) is defined ...
, 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
In mathematics, a recurrence relation is an equation according to which the nth term of a sequence of numbers is equal to some combination of the previous terms. Often, only k previous terms of the sequence appear in the equation, for a parameter ...
to give
Using this inverted recurrence, (−1)!! = 1, (−3)!! = −1, and (−5)!! = ; negative odd numbers with greater magnitude have fractional double factorials.
In particular, when is an odd number, this gives
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
where
is the
gamma function
In mathematics, the gamma function (represented by Γ, capital Greek alphabet, Greek letter gamma) is the most common extension of the factorial function to complex numbers. Derived by Daniel Bernoulli, the gamma function \Gamma(z) is defined ...
.
The final expression is defined for all complex numbers except the negative even integers and satisfies everywhere it is defined. As with the gamma function that extends the ordinary factorial function, this double factorial function is
logarithmically convex in the sense of the
Bohr–Mollerup theorem. Asymptotically,
The generalized formula
does not agree with the previous product formula for for non-negative ''even'' integer values of . Instead, this generalized formula implies the following alternative:
with the value for 0!! in this case being
*
.
Using this generalized formula as the definition, the
volume
Volume is a measure of regions in three-dimensional space. It is often quantified numerically using SI derived units (such as the cubic metre and litre) or by various imperial or US customary units (such as the gallon, quart, cubic inch) ...
of an -
dimension
In physics and mathematics, the dimension of a mathematical space (or object) is informally defined as the minimum number of coordinates needed to specify any point within it. Thus, a line has a dimension of one (1D) because only one coo ...
al
hypersphere
In mathematics, an -sphere or hypersphere is an - dimensional generalization of the -dimensional circle and -dimensional sphere to any non-negative integer .
The circle is considered 1-dimensional and the sphere 2-dimensional because a point ...
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
In mathematics, the gamma function (represented by Γ, capital Greek alphabet, Greek letter gamma) is the most common extension of the factorial function to complex numbers. Derived by Daniel Bernoulli, the gamma function \Gamma(z) is defined ...
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, which can be seen as a result of the
Wallis Integral.
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 (multifactorials), or -factorial functions, extends the notion of the double factorial function for positive integers
:
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 the positive integer 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 and satisfies 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
In mathematics, the falling factorial (sometimes called the descending factorial, falling sequential product, or lower factorial) is defined as the polynomial
\begin
(x)_n = x^\underline &= \overbrace^ \\
&= \prod_^n(x-k+1) = \prod_^(x-k) .
\end ...
and the generalized, rational-valued
binomial coefficients
In mathematics, the binomial coefficients are the positive integers that occur as coefficients in the binomial theorem. Commonly, a binomial coefficient is indexed by a pair of integers and is written \tbinom. It is the coefficient of the te ...
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 .
Similar identities can be obtained via context-free grammars. Additional finite sum expansions of congruences for the -factorial functions, , modulo any prescribed integer for any are given by .
References
{{reflist
Integer sequences
Enumerative combinatorics
Factorial and binomial topics
fr:Analogues de la factorielle#Multifactorielles