Double factorial
   HOME

TheInfoList



OR:

In
mathematics Mathematics is an area of knowledge that includes the topics of numbers, formulas and related structures, shapes and the spaces in which they are contained, and quantities and their changes. These topics are represented in modern mathematics ...
, the double factorial or semifactorial of a number , denoted by , is the product of all the
integer An integer is the number zero (), a positive natural number (, , , etc.) or a negative integer with a minus sign ( −1, −2, −3, etc.). The negative numbers are the additive inverses of the corresponding positive numbers. In the languag ...
s from 1 up to that have the same
parity Parity may refer to: * Parity (computing) ** Parity bit in computing, sets the parity of data for the purpose of error detection ** Parity flag in computing, indicates if the number of set bits is odd or even in the binary representation of the ...
(odd or even) as . That is, :n!! = \prod_^ (n-2k) = n (n-2) (n-4) \cdots. For even , the double factorial is :n!! = \prod_^\frac (2k) = n(n-2)(n-4)\cdots 4\cdot 2 \,, and for odd it is :n!! = \prod_^\frac (2k-1) = n(n-2)(n-4)\cdots 3\cdot 1 \,. For example, . The zero double factorial as an empty product. 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 called ...
of double factorials for even = starts as : 1, 2, 8, 48, 384, 3840, 46080, 645120,... The sequence of double factorials for odd = starts as : 1, 3, 15, 105, 945, 10395, 135135,... The term odd factorial is sometimes used for the double factorial of an odd number.


History and usage

In a 1902 paper, the physicist Arthur Schuster 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 hypersphere, and they have many applications in enumerative combinatorics. 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 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 (n-1) \times (n-2) \ ...
, 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: :n! = n!! \cdot (n-1)!!\,, and therefore :n!! = \frac = \frac\,, 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 :n!! = 2^k k!\,. For odd with , combining the two above yields :n!! = \frac = \frac\,. For an odd positive integer with , the double factorial may be expressed in terms of -permutations of as :(2k-1)!! = \frac = \frac \,.


Asymptotics

Stirling's approximation for the factorial n! \sim \sqrt\left(\frac\right)^n, can be used to derive the following asymptotic equivalent as n tends to infinity: n!! \sim \begin \displaystyle \sqrt\left(\frac\right)^ & \text n \text \\ pt\displaystyle \sqrt\left(\frac\right)^ & \text n \text. \end


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 *
Perfect matching In graph theory, a perfect matching in a graph is a matching that covers every vertex of the graph. More formally, given a graph , a perfect matching in is a subset of edge set , such that every vertex in the vertex set is adjacent to exactl ...
s of the complete graph 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 is, loosely speaking, an arrangement of its members into a sequence or linear order, or if the set is already ordered, a rearrangement of its elements. The word "permutation" also refers to the act or p ...
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 Br ...
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 a sequence of digits assigned to a landline telephone subscriber station connected to a telephone line or to a wireless electronic telephony device, such as a radio telephone or a mobile telephone, or to other devices f ...
s, which may be expressed as a summation involving double factorials. * Stirling permutations, permutations of the multiset 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 tree In mathematics and computer science, an unrooted binary tree is an unrooted tree in which each vertex has either one or three neighbors. Definitions A free tree or unrooted tree is a connected undirected graph with no cycles. The vertices with o ...
s 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 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 and . The even double factorials give the numbers of elements of the hyperoctahedral groups (signed permutations or symmetries of a
hypercube In geometry, a hypercube is an ''n''-dimensional analogue of a square () and a cube (). It is a closed, compact, convex figure whose 1-skeleton consists of groups of opposite parallel line segments aligned in each of the space's dimensions, p ...
)


Extensions


Negative arguments

The ordinary factorial, when extended to the
gamma function In mathematics, the gamma function (represented by , the capital letter gamma from the Greek alphabet) is one commonly used extension of the factorial function to complex numbers. The gamma function is defined for all complex numbers excep ...
, 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 :n!! = n \times (n-2)!! to give :n!! = \frac\,. 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 :(-n)!! \times n!! = (-1)^\frac \times n\,.


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 :\begin z!! &= z(z-2)\cdots 3 \cdot 1 \\ mu&= 2^\frac\left(\frac z2\right)\left(\frac2\right)\cdots \left(\frac\right) \\ mu&= 2^\frac \frac \,.\end From this one computes an alternative definition of for non-negative even integer values of : :(2k)!! = 2^\frac \frac = \frac = \sqrt \prod_^k (2i) \,, with the value for 0!! in this case being : :0!! = \sqrt \approx 0.797\,884\,5608\dots The expression found for is defined for all complex numbers except the negative even integers. Using it as the definition, the
volume Volume is a measure of occupied 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 coord ...
al hypersphere of radius can be expressed as :V_n=\frac R^n\,. A different extension of the double factorial, which agrees with the formula z!!=z(z-2)\cdots 2 for positive even values of , is z!! = 2^ \cdot \pi^ \cdot \Gamma\left(1 + \tfrac z\right)


Additional identities

For integer values of , :\int_^\frac\sin^n x\,dx=\int_^\frac\cos^n x\,dx=\frac\times \begin1 & \text n \text \\ \frac & \text n \text\end Using instead the extension of the double factorial of odd numbers to complex numbers, the formula is :\int_^\frac\sin^n x\,dx=\int_^\frac\cos^n x\,dx=\frac \sqrt\,. 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 , the capital letter gamma from the Greek alphabet) is one commonly used extension of the factorial function to complex numbers. The gamma function is defined for all complex numbers excep ...
by the identity: :(2n-1)!! = 2^n \cdot \frac = (-2)^n \cdot \frac \,. Some additional identities involving double factorials of odd numbers are: :\begin (2n-1)!! &= \sum_^ \binom (2k-1)!! (2n-2k-3)!! = \sum_^ \binom (2k-3)!! (2(n-k)-1)!!\,, \\ (2n-1)!! &= \sum_^ \binom \frac(2n-2k-3)!!\,, \\ (2n-1)!! &= \sum_^ \frac k(2k-3)!!\,. \end An approximation for the ratio of the double factorial of two consecutive integers is : \frac \approx \sqrt. 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 \alpha \isin \mathbb^+: : n!_ = \begin n \cdot (n-\alpha)!_ & \text n > 0 \,; \\ 1 & \text -\alpha < n \leq 0 \,; \\ 0 & \text \end


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 :\begin n!_ &= n(n-\alpha)\cdots (\alpha+1) \\ &= \alpha^\frac\left(\frac\right)\left(\frac\right)\cdots \left(\frac\right) \\ &= \alpha^\frac \frac\,. \end 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: :\left begin n \\ k \end \right = (\alpha n+1-2\alpha) \left begin n-1 \\ k \end \right + \left begin n-1 \\ k-1 \end \right + \delta_ \delta_\,. These generalized ''-factorial coefficients'' then generate the distinct symbolic polynomial products defining the multiple factorial, or -factorial functions, , as : \begin (x-1, \alpha)^ & := \prod_^ \left(x-1-i\alpha\right) = (x-1)(x-1-\alpha)\cdots\bigl(x-1-(n-1)\alpha\bigr) \\ & = \sum_^n \left begin n \\ k \end \right(-\alpha)^ (x-1)^k \\ & = \sum_^n \left begin n \\ k \end \right (-1)^ x^\,. \end 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 :\sigma_n^(x) := \left begin x \\ x-n \end \right \frac for . These polynomials have a particularly nice closed-form
ordinary generating function In mathematics, a generating function is a way of encoding an infinite sequence of numbers () by treating them as the coefficients of a formal power series. This series is called the generating function of the sequence. Unlike an ordinary ser ...
given by :\sum_ x \cdot \sigma_n^(x) z^n = e^ \left(\frac\right)^x\,. 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 : \begin (\alpha n-1)!_ & = \sum_^ \binom (-1)^k \times \left(\frac\right)_ \left(\frac-n\right)_ \times \bigl(\alpha(k+1)-1\bigr)!_ \bigl(\alpha(n-k-1)-1\bigr)!_ \\ & = \sum_^ \binom (-1)^k \times \binom \binom \times \bigl(\alpha(k+1)-1\bigr)!_ \bigl(\alpha(n-k-1)-1\bigr)!_\,, \end and moreover, we similarly have double sum expansions of these functions given by : \begin (\alpha n-1)!_ & = \sum_^ \sum_^ \binom \binom (-1)^k \alpha^ (\alpha i-1)!_ \bigl(\alpha(n-1-k)-1\bigr)!_ \times (n-1-k)_ \\ & = \sum_^ \sum_^ \binom \binom \binom (-1)^k \alpha^ (\alpha i-1)!_ \bigl(\alpha(n-1-k)-1\bigr)!_ \times (k+1-i)!. \end The first two sums above are similar in form to a known ''non-round'' combinatorial identity for the double factorial function when given by . :(2n-1)!! = \sum_^ \binom (2k-1)!! (2n-2k-3)!!. 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