Double factorial

Short description: Mathematical function

The double factorial n!! is not the same as applying the factorial function twice (n!)!.

The fifteen different chord diagrams on six points, or equivalently the fifteen different perfect matchings on a six-vertex complete graph. These are counted by the double factorial 15 = (6 − 1)‼.

In mathematics, the double factorial of a number n, denoted by n‼, is the product of all the positive integers up to n that have the same parity (odd or even) as n.[1] That is,

n!!=∏k=0⌈n2⌉−1(n−2k)=n(n−2)(n−4)⋯.

Restated, this says that for even n, the double factorial[2] is n!!=∏k=1n2(2k)=n(n−2)(n−4)⋯4⋅2, while for odd n it is n!!=∏k=1n+12(2k−1)=n(n−2)(n−4)⋯3⋅1. A few examples are:

* 1!! = 1 = 1,
* 2!! = 2 = 2,
* 3!! = 3 × 1 = 3,
* 4!! = 4 × 2 = 8,
* 5!! = 5 × 3 × 1 = 15,
* 6!! = 6 × 4 × 2 = 48,
* 7!! = 7 × 5 × 3 × 1 = 105.

The zero double factorial 0‼ = 1 as an empty product.[3][4]

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)

The term odd factorial is sometimes used for the double factorial of an odd number.[5][6]

The term semifactorial is also used by Knuth as a synonym of double factorial.[7]

## Contents

* 1 History and usage
* 2 Relation to the factorial
* 3 Applications in enumerative combinatorics
* 4 Asymptotics
* 5 Extensions
* 5.1 Negative arguments
* 5.2 Complex arguments
* 6 Additional identities
* 7 Generalizations
* 7.1 Definitions
* 7.2 Alternative extension of the multifactorial
* 7.3 Generalized Stirling numbers expanding the multifactorial functions
* 7.4 Exact finite sums involving multiple factorial functions
* 8 References

## History and usage

In a 1902 paper, the physicist Arthur Schuster wrote:[8]

> The symbolical representation of the results of this paper is much facilitated by the introduction of a separate symbol for the product of alternate factors, n⋅n−2⋅n−4⋯1, if n be odd, or n⋅n−2⋯2 if n be odd [sic]. I propose to write n!! for such products, and if a name be required for the product to call it the "alternate factorial" or the "double factorial".

(Meserve 1948)[9] 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, and they have many applications in enumerative combinatorics.[1][10] They occur in Student's t-distribution (1908), although Gosset did not use the double exclamation point notation.[citation needed]

## 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!)!.

The factorial of a positive n may be written as the product of two double factorials:[3] n!=n!!⋅(n−1)!!, and therefore n!!=n!(n−1)!!=(n+1)!(n+1)!!, where the denominator cancels the unwanted factors in the numerator. The last form also applies when n = 0.

For an even non-negative integer n = 2k with k ≥ 0, the double factorial may be expressed as (2k)!!=2kk!.

For odd n = 2k − 1 with k ≥ 1, combining the two previous formulas yields (2k−1)!!=(2k−1)!2k−1(k−1)!=(2k)!2kk!. The last form also applies when k = 0, and can be written in terms of k-permutations of 2k or a falling factorial as (2k−1)!!=2kPk2k=(2k)k_2k.

## Applications in enumerative combinatorics

The fifteen different rooted binary trees (with unordered children) on a set of four labeled leaves, illustrating 15 = (2 × 4 − 3)‼ (see article text).

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

* Perfect matchings of the complete graph Kn \+ 1 for odd n. In such a graph, any single vertex v has n 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.[1] Perfect matchings may be described in several other equivalent ways, including involutions without fixed points on a set of n \+ 1 items (permutations in which each cycle is a pair)[1] or chord diagrams (sets of chords of a set of n \+ 1 points evenly spaced on a circle such that each point is the endpoint of exactly one chord, also called Brauer diagrams).[10][11][12] The numbers of matchings in complete graphs, without constraining the matchings to be perfect, are instead given by the telephone numbers, which may be expressed as a summation involving double factorials.[13]
* Stirling permutations, permutations of the multiset of numbers 1, 1, 2, 2, ..., k, k in which each pair of equal numbers is separated only by larger numbers, where k = ⁠n \+ 1/2⁠. The two copies of k must be adjacent; removing them from the permutation leaves a permutation in which the maximum element is k − 1, with n positions into which the adjacent pair of k values may be placed. From this recursive construction, a proof that the Stirling permutations are counted by the double permutations follows by induction.[1] 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 2k positions of the permutation, so again the number of permutations may be counted by the double permutations.[10]
* Heap-ordered trees, trees with k \+ 1 nodes labeled 0, 1, 2, ... k, 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 of the tree (with doubled edges) gives a Stirling permutation, and every Stirling permutation represents a tree in this way.[1][14]
* Unrooted binary trees with ⁠n \+ 5/2⁠ labeled leaves. Each such tree may be formed from a tree with one fewer leaf, by subdividing one of the n tree edges and making the new vertex be the parent of a new leaf.
* Rooted binary trees with ⁠n \+ 3/2⁠ 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.[1][10]

(Callan 2009) and (Dale Moon) 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).[15][16]

The even double factorials give the numbers of elements of the hyperoctahedral groups (signed permutations or symmetries of a hypercube)

## Asymptotics

Stirling's approximation for the factorial can be used to derive an asymptotic equivalent for the double factorial. In particular, since n!∼2πn(ne)n, one has as n tends to infinity that

n!!∼{πn(ne)n/2if n is even,2n(ne)n/2if n is odd.

## 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 n!!=n×(n−2)!! to give n!!=(n+2)!!n+2. Using this inverted recurrence, (−1)!! = 1, (−3)!! = −1, and (−5)!! = ⁠1/3⁠; negative odd numbers with greater magnitude have fractional double factorials.[1] In particular, when n is an odd number, this gives (−n)!!×n!!=(−1)n−12×n.

### 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[17][18]

z!!=z(z−2)⋯5⋅3=2z−12(z2)(z−22)⋯(52)(32)=2z−12Γ(z2+1)Γ(12+1)=2π2z2Γ(z2+1), where Γ(z) is the gamma function.

The final expression is defined for all complex numbers except the negative even integers and satisfies (z \+ 2)!! = (z \+ 2) · z!! 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, n!!∼2nn+1e−n.

The generalized formula 2π2z2Γ(z2+1) does not agree with the previous product formula for z!! for non-negative even integer values of z. Instead, this generalized formula implies the following alternative: (2k)!!=2π2kΓ(k+1)=2π∏i=1k(2i), with the value for 0!! in this case being

* 0!!=2π≈0.7978845608… (sequence A076668 in the OEIS).

Using this generalized formula as the definition, the volume of an n-dimensional hypersphere of radius R can be expressed as[19]

Vn=2(2π)n−12n!!Rn, regardless of whether n is even or odd.

## Additional identities

For integer values of n, ∫0π2sinnxdx=∫0π2cosnxdx=(n−1)!!n!!×{1if n is oddπ2if n is even. Using instead the extension of the double factorial of odd numbers to complex numbers, the formula is ∫0π2sinnxdx=∫0π2cosnxdx=(n−1)!!n!!π2.

Double factorials can also be used to evaluate integrals of more complicated trigonometric polynomials.[9][20]

Double factorials of odd numbers are related to the gamma function by the identity:

(2n−1)!!=2n⋅Γ(12+n)π=(−2)n⋅πΓ(12−n).

Some additional identities involving double factorials of odd numbers are:[1]

(2n−1)!!=∑k=0n−1(nk+1)(2k−1)!!(2n−2k−3)!!=∑k=1n(nk)(2k−3)!!(2(n−k)−1)!!=∑k=0n(2n−k−1k−1)(2k−1)(2n−k+1)k+1(2n−2k−3)!!=∑k=1n(n−1)!(k−1)!k(2k−3)!!.

An approximation for the ratio of the double factorial of two consecutive integers is (2n)!!(2n−1)!!≈πn. This approximation gets more accurate as n 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 α:

n!(α)={n⋅(n−α)!(α) if n>α;n if 1≤n≤α;and(n+α)!(α)/(n+α) if n≤0 and is not a negative multiple of α;

### Alternative extension of the multifactorial

Alternatively, the multifactorial z!(α) can be extended to most real and complex numbers z by noting that when z is one more than a positive multiple of the positive integer α then

z!(α)=z(z−α)⋯(α+1)=αz−1α(zα)(z−αα)⋯(α+1α)=αz−1αΓ(zα+1)Γ(1α+1). where Γ(z) is the gamma function.

This last expression is defined much more broadly than the original. In the same way that z! is not defined for negative integers, and z‼ is not defined for negative even integers, z!(α) is not defined for negative multiples of α. However, it is defined and satisfies (z+α)!(α) = (z+α)·z!(α) for all other complex numbers z. This definition is consistent with the earlier definition only for those integers z satisfying z ≡ 1 mod α.

In addition to extending z!(α) to most complex numbers z, this definition has the feature of working for all positive real values of α. Furthermore, when α = 1, this definition is mathematically equivalent to the Π(z) function, described above. Also, when α = 2, 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 α > 0 by the following triangular recurrence relation:

[nk]α=(αn+1−2α)[n−1k]α+[n−1k−1]α+δn,0δk,0.

These generalized α-factorial coefficients then generate the distinct symbolic polynomial products defining the multiple factorial, or α-factorial functions, (x − 1)!(α), as

(x−1|α)n_:=∏i=0n−1(x−1−iα)=(x−1)(x−1−α)⋯(x−1−(n−1)α)=∑k=0n[nk](−α)n−k(x−1)k=∑k=1n[nk]α(−1)n−kxk−1.

The distinct polynomial expansions in the previous equations actually define the α-factorial products for multiple distinct cases of the least residues x ≡ n0 mod α for n0 ∈ {0, 1, 2, ..., α − 1}.

The generalized α-factorial polynomials, σ(α)n(x) where σ(1)n(x) ≡ σn(x), which generalize the Stirling convolution polynomials from the single factorial case to the multifactorial cases, are defined by

σn(α)(x):=[xx−n](α)(x−n−1)!x!

for 0 ≤ n ≤ x. These polynomials have a particularly nice closed-form ordinary generating function given by

∑n≥0x⋅σn(α)(x)zn=e(1−α)z(αzeαzeαz−1)x.

Other combinatorial properties and expansions of these generalized α-factorial triangles and polynomial sequences are considered in (Schmidt 2010).[21]

### Exact finite sums involving multiple factorial functions

Suppose that n ≥ 1 and α ≥ 2 are integer-valued. Then we can expand the next single finite sums involving the multifactorial, or α-factorial functions, (αn − 1)!(α), in terms of the Pochhammer symbol and the generalized, rational-valued binomial coefficients as

(αn−1)!(α)=∑k=0n−1(n−1k+1)(−1)k×(1α)−(k+1)(1α−n)k+1×(α(k+1)−1)!(α)(α(n−k−1)−1)!(α)=∑k=0n−1(n−1k+1)(−1)k×(1α+k−nk+1)(1α−1k+1)×(α(k+1)−1)!(α)(α(n−k−1)−1)!(α),

and moreover, we similarly have double sum expansions of these functions given by

(αn−1)!(α)=∑k=0n−1∑i=0k+1(n−1k+1)(k+1i)(−1)kαk+1−i(αi−1)!(α)(α(n−1−k)−1)!(α)×(n−1−k)k+1−i=∑k=0n−1∑i=0k+1(n−1k+1)(k+1i)(n−1−ik+1−i)(−1)kαk+1−i(αi−1)!(α)(α(n−1−k)−1)!(α)×(k+1−i)!.

The first two sums above are similar in form to a known non-round combinatorial identity for the double factorial function when α := 2 given by (Callan 2009).

(2n−1)!!=∑k=0n−1(nk+1)(2k−1)!!(2n−2k−3)!!.

Similar identities can be obtained via context-free grammars.[22] Additional finite sum expansions of congruences for the α-factorial functions, (αn − d)!(α), modulo any prescribed integer h ≥ 2 for any 0 ≤ d < α are given by (Schmidt 2018).[23]

## References

1. ↑ 1.0 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 Callan, David (2009). "A combinatorial survey of identities for the double factorial". arXiv:0906.1317 [math.CO].
2. ↑ Some authors define the double factorial differently for even numbers; see Double factorial § complex arguments below.
3. ↑ 3.0 3.1 Weisstein, Eric W.. "Double Factorial" (in en). https://mathworld.wolfram.com/DoubleFactorial.html.
4. ↑ "Double Factorials and Multifactorials | Brilliant Math & Science Wiki" (in en-us). https://brilliant.org/wiki/double-factorials-and-multifactorials/.
5. ↑ Henderson, Daniel J.; Parmeter, Christopher F. (2012). "Canonical higher-order kernels for density derivative estimation". Statistics & Probability Letters 82 (7): 1383–1387. doi:10.1016/j.spl.2012.03.013.
6. ↑ Nielsen, B. (1999). "The likelihood-ratio test for rank in bivariate canonical correlation analysis". Biometrika 86 (2): 279–288. doi:10.1093/biomet/86.2.279.
7. ↑ Knuth, Donald Ervin (2023). The art of computer programming. volume 4B part 2: Combinatorial algorithms. Boston Munich: Addison-Wesley. ISBN 978-0-201-03806-4.
8. ↑ Schuster, Arthur (1902). "On some definite integrals and a new method of reducing a function of spherical co-ordinates to a series of spherical harmonics". Proceedings of the Royal Society of London 71 (467–476): 97–101. doi:10.1098/rspl.1902.0068. See in particular p. 99.
9. ↑ 9.0 9.1 Meserve, B. E. (1948). "Classroom Notes: Double Factorials". The American Mathematical Monthly 55 (7): 425–426. doi:10.2307/2306136.
10. ↑ 10.0 10.1 10.2 10.3 Dale, M. R. T.; Moon, J. W. (1993). "The permuted analogues of three Catalan sets". Journal of Statistical Planning and Inference 34 (1): 75–87. doi:10.1016/0378-3758(93)90035-5.
11. ↑ Kitaev, Sergey (2011). Patterns in Permutations and Words. EATCS Monographs in Theoretical Computer Science. Springer. p. 96. ISBN 9783642173332. https://books.google.com/books?id=JgQHtgR5N60C&pg=PA96.
12. ↑ Dale, M. R. T.; Narayana, T. V. (1986). "A partition of Catalan permuted sequences with applications". Journal of Statistical Planning and Inference 14 (2): 245–249. doi:10.1016/0378-3758(86)90161-8.
13. ↑ Tichy, Robert F.; Wagner, Stephan (2005). "Extremal problems for topological indices in combinatorial chemistry". Journal of Computational Biology 12 (7): 1004–1013. doi:10.1089/cmb.2005.12.1004. PMID 16201918. http://www.math.tugraz.at/fosp/pdfs/tugraz_main_0052.pdf.
14. ↑ "Fifth Colloquium on Mathematics and Computer Science". Assoc. Discrete Math. Theor. Comput. Sci., Nancy. 2008. pp. 541–547. Bibcode: 2008arXiv0803.1129J.
15. ↑ Rubey, Martin (2008). "20th Annual International Conference on Formal Power Series and Algebraic Combinatorics (FPSAC 2008)". Assoc. Discrete Math. Theor. Comput. Sci., Nancy. pp. 691–704.
16. ↑ Marsh, Robert J.; Martin, Paul (2011). "Tiling bijections between paths and Brauer diagrams". Journal of Algebraic Combinatorics 33 (3): 427–453. doi:10.1007/s10801-010-0252-6.
17. ↑ Hassani, Sadri (2000). Mathematical Methods: For Students of Physics and Related Fields. Undergraduate Texts in Mathematics. Springer. p. 266. ISBN 9780387989587. https://books.google.com/books?id=dxSOzeLMij4C&pg=PA266.
18. ↑ "Double factorial: Specific values (formula 06.02.03.0005)". Wolfram Research. 2001-10-29. http://functions.wolfram.com/06.02.03.0005.
19. ↑ Mezey, Paul G. (2009). "Some dimension problems in molecular databases". Journal of Mathematical Chemistry 45 (1): 1–6. doi:10.1007/s10910-008-9365-8.
20. ↑ "A useful application of Gauss theorem". Bulletin de la Société Mathématique de Grèce 28 (A): 40–43. 1987.
21. ↑ Schmidt, Maxie D. (2010). "Generalized j-Factorial Functions, Polynomials, and Applications". J. Integer Seq. 13. https://cs.uwaterloo.ca/journals/JIS/VOL13/Schmidt/multifact.html.
22. ↑ Triana, Juan; De Castro, Rodrigo (2019). "The formal derivative operator and multifactorial numbers". Revista Colombiana de Matemáticas 53 (2): 125–137. doi:10.15446/recolma.v53n2.85522. ISSN 0034-7426.
23. ↑ Schmidt, Maxie D. (2018). "New congruences and finite difference equations for generalized factorial functions". Integers 18: A78:1–A78:34. https://math.colgate.edu/~integers/s78/s78.pdf.

fr:Analogues de la factorielle#Multifactorielles de:Doppelfakultät

0.00

(0 votes)

Original source: https://en.wikipedia.org/wiki/Double factorial. Read more

|

Retrieved from "https://handwiki.org/wiki/index.php?title=Double_factorial&oldid=4229877"