# 双阶乘

非负整数 n 的双阶乘记作 n!!，是 1 到 n 之间所有与 n 奇偶性相同的正整数的乘积：n 为奇数时是 n·(n−2)·(n−4)···5·3·1，n 为偶数时是 n·(n−2)·(n−4)···6·4·2。按约定，0!! = 1，(−1)!! = 1。<sup>[1](https://mathworld.wolfram.com/DoubleFactorial.html)</sup> 尽管记号相似，n!! 并不是 n! 的阶乘；它是每隔一个整数取一项的单个乘积，是多重阶乘族的一个特例。<sup>[1](https://mathworld.wolfram.com/DoubleFactorial.html)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | n!! = n·(n−2)·(n−4)··· 直到 1（n 为奇数）或 2（n 为偶数）；0!! = (−1)!! = 1<sup>[1](https://mathworld.wolfram.com/DoubleFactorial.html)</sup> |
| 最初几项 | 当 n = 0, 1, 2, … 时：1, 1, 2, 3, 8, 15, 48, 105, 384, …（OEIS A006882）<sup>[1](https://mathworld.wolfram.com/DoubleFactorial.html)</sup> |
| 与 n! 的关系 | (2n)!! = 2<sup>n</sup>n!，(2n+1)!! = (2n+1)!/(2<sup>n</sup>n!)<sup>[1](https://mathworld.wolfram.com/DoubleFactorial.html)</sup> |
| 伽马函数形式 | n 为偶数时 n!! = 2<sup>n/2</sup>Γ(n/2+1)；n 为奇数时 n!! = π<sup>−1/2</sup>2<sup>(n+1)/2</sup>Γ(n/2+1)，且奇数公式也给出 (−1)!! = 1<sup>[2](https://dlmf.nist.gov/5.4)</sup> |
| 计数意义 | (2n−1)!! 是 2n 个元素的集合的完全匹配（配对）数<sup>[3](https://oeis.org/A001147)</sup> |
| 负奇数延拓 | 对 n = 0, 1, …，(−2n−1)!! = (−1)<sup>n</sup>/(2n−1)!!<sup>[1](https://mathworld.wolfram.com/DoubleFactorial.html)</sup> |
| 复数延拓 | z!! = 2<sup>(1+2z−cos πz)/4</sup>π<sup>(cos πz−1)/4</sup>Γ(1+z/2)<sup>[1](https://mathworld.wolfram.com/DoubleFactorial.html)</sup> |

## 定义与基本恒等式

递推式 n!! = n·(n−2)!! 连同基值 1!! = 1 与 2!! = 2，生成整个数列，其方式恰如 n! = n·(n−1)! 连同 0! = 1 生成普通阶乘。<sup>[4](https://archive.bukohome.com/content/wiktionary_en_all_maxi_2024-05/A/double_factorial)</sup> 两条奇偶分支通过拆分 n! 的偶数因子与奇数因子，与普通阶乘联系起来：(2n)! 的偶数因子给出 (2n)!! = 2<sup>n</sup>n!，剩余部分给出 (2n+1)!! = (2n+1)!/(2<sup>n</sup>n!)。<sup>[1](https://mathworld.wolfram.com/DoubleFactorial.html)</sup> n = 0, 1, … 的奇数双阶乘依次为 1, 3, 15, 105, 945, 10395, …（OEIS A001147），偶数双阶乘依次为 1, 2, 8, 48, 384, 3840, 46080, …（OEIS A000165）。<sup>[1](https://mathworld.wolfram.com/DoubleFactorial.html)</sup>

双阶乘可以用伽马函数表示，后者是阶乘向非整数自变量的延拓。NIST 数学函数数字图书馆给出，对非负整数 n，<sup>[2](https://dlmf.nist.gov/5.4)</sup>

\[ n!! = \begin{cases} 2^{n/2}\,\Gamma\!\left(\tfrac{n}{2}+1\right), & n \text{ 为偶数}, \\[4pt] \pi^{-1/2}\,2^{(n+1)/2}\,\Gamma\!\left(\tfrac{n}{2}+1\right), & n \text{ 为奇数}. \end{cases} \]

奇数分支在 n = −1 处同样适用，约定 (−1)!! = 1 正是由此从连续公式中重新得到的。<sup>[2](https://dlmf.nist.gov/5.4)</sup> 等价地，Γ(n+1/2) = (2n−1)!!·√π/2<sup>n</sup>，这一形式常用于处理半整数伽马值。<sup>[1](https://mathworld.wolfram.com/DoubleFactorial.html)</sup>

## 正整数之外的延拓

定义可通过 (−2n−1)!! = (−1)<sup>n</sup>/(2n−1)!! = (−1)<sup>n</sup>2<sup>n</sup>n!/(2n)! 延拓到负奇数整数，于是 (−1)!! = 1，(−3)!! = −1，(−5)!! = 1/3；负偶数自变量在这种延拓下没有定义。<sup>[1](https://mathworld.wolfram.com/DoubleFactorial.html)</sup>

此外还有适用于复数自变量的版本。J. 凯珀（J. Keiper）与 O. I. 马里切夫（O. I. Marichev）于 1994 年在 Mathematica 中实现函数 Factorial2 时提出了这一复自变量延拓。<sup>[5](https://functions.wolfram.com/introductions/PDF/Factorial.pdf)</sup> MathWorld 将其表述为<sup>[1](https://mathworld.wolfram.com/DoubleFactorial.html)</sup>

\[ z!! = 2^{(1+2z-\cos(\pi z))/4}\,\pi^{(\cos(\pi z)-1)/4}\,\Gamma\!\left(1+\tfrac{z}{2}\right). \]

正是余弦因子使该公式在整数上重现两条不同的奇偶分支。

## 记号的历史

在 1902 年的一篇论文中，物理学家阿瑟·舒斯特（Arthur Schuster）写道，为交错因子之积 n·(n−2)·(n−4)··· 引入一个专门的符号，使他的结果的符号表示大为便利，并提议把这类乘积写作 n!!，还建议若需要一个名称，可称之为“交错阶乘”（alternate factorial）或“双阶乘”。<sup>[4](https://archive.bukohome.com/content/wiktionary_en_all_maxi_2024-05/A/double_factorial)</sup> 帕特·巴洛（Pat Ballew）在对阶乘历史的考察中所能找到的最早使用“!!”记号或“双阶乘”一词的文献，是 B. E. 梅瑟夫（B. E. Meserve）发表于《美国数学月刊》第 55 卷（1948 年）的《双阶乘》（Double Factorials）；梅瑟夫的用法把这一术语和符号当作已为人熟知的东西，说明更早的用法应当存在。<sup>[6](https://pballew.blogspot.com/2025/02/notes-on-history-of-factorial.html)</sup> MathWorld 指出，记号 n!! 的起源并不广为人知，卡约里（Cajori）的《数学记号史》中也没有提及。<sup>[1](https://mathworld.wolfram.com/DoubleFactorial.html)</sup> 梅瑟夫 1948 年的文章陈述了两个标准恒等式 (2n)!! = 2<sup>n</sup>n! 与 (2n+1)!! = (2n+1)!/(2<sup>n</sup>n!)，并把该记号描述为 n! = 1·2·3···n 的一种推广。<sup>[4](https://archive.bukohome.com/content/wiktionary_en_all_maxi_2024-05/A/double_factorial)</sup>

## 组合与概率

奇数双阶乘用于计数配对。集合 [2n] = {1, 2, …, 2n} 的一个完全匹配，是把该集合划分成 n 个二元子集；这样的匹配数为 (2n−1)!!：元素 1 可以与其他 2n−1 个元素中的任意一个配对，再对剩余元素递归计数。<sup>[3](https://oeis.org/A001147)</sup><sup> • </sup><sup>[7](https://pages.stat.wisc.edu/~callan/papers/Double_Factorial/Double_Factorial.pdf)</sup> 同一组数也作为高斯分布 e<sup>x²/2</sup> 的非零矩出现：标准正态变量的矩在偶次幂时为 0，在 k 次幂时为 (2k−1)!!，这也是双阶乘在概率论中反复出现的原因之一。<sup>[3](https://oeis.org/A001147)</sup>

威斯康星大学麦迪逊分校的统计学家戴维·卡兰（David Callan）综述了双阶乘约十余个恒等式的组合解释，例如 (2n−2)!! + Σ<sub>k=2</sub><sup>n</sup> (2n−1)!!(2k−4)!!/(2k−1)!! = (2n−1)!!，所用方法大多是双射式的。<sup>[8](https://arxiv.org/abs/0906.1317)</sup> 除单纯的计数之外，双阶乘还出现在匹配统计量的矩公式中：对于完全匹配上的一大族组合统计量（包括交叉数与嵌套数的计数），其矩可以表示为双阶乘的常系数线性组合，这是尼拉杰·卡雷（Niraj Khare）、鲁道夫·洛伦茨（Rudolph Lorentz）与凯瑟琳·H·严（Catherine H. Yan）的结果，它加强了陈（Chern）、迪亚科尼斯（Diaconis）、凯恩（Kane）与罗兹（Rhoades）关于集合划分的类似工作。<sup>[9](https://people.tamu.edu/~huafei-yan/Files/final_joc158.pdf)</sup> OEIS 的 A001147 条目还记载，热带格拉斯曼流形 G′′′(2,n)（等价地，系统发育 T<sub>n</sub> 树的空间，或白宫复形）的极大面数是一个平移过的双阶乘。<sup>[3](https://oeis.org/A001147)</sup>

## 分析与几何

双阶乘出现在高维超球的体积与表面积公式中，其中 n!! 形式的表达式来自维数公式所需的半整数伽马值。<sup>[10](https://datamining.readthedocs.io/en/latest/part1/chap6.html)</sup> 这一联系经由上文伽马函数表示建立：半整数伽马值正是奇数双阶乘乘以 √π 的幂。<sup>[1](https://mathworld.wolfram.com/DoubleFactorial.html)</sup>

其倒数的级数也有封闭形式。MathWorld 给出<sup>[1](https://mathworld.wolfram.com/DoubleFactorial.html)</sup>

\[ \sum_{n=0}^{\infty} \frac{1}{n!!} = \sqrt{e}\left[1 + \sqrt{\tfrac{\pi}{2}}\,\operatorname{erf}\!\left(\tfrac{1}{2}\sqrt{2}\right)\right] = 3.0594074053425761445\ldots \]

这是互反多重阶乘常数（OEIS A143280）的一个特例。<sup>[1](https://mathworld.wolfram.com/DoubleFactorial.html)</sup>

## 计算

双阶乘在 Wolfram 语言中实现为 n!! 或 Factorial2[n]。<sup>[1](https://mathworld.wolfram.com/DoubleFactorial.html)</sup> 在 R 中，TreeTools 包提供 DoubleFactorial(n)，返回 n·(n−2)·(n−4)·(n−6)···，并提供 LnDoubleFactorial 等对数变体，以及适用于 n < 34 的 64 位精确版本 DoubleFactorial64；phangorn 包提供 dfactorial(x) 及其对数 ldfactorial(x)。<sup>[11](https://search.r-project.org/CRAN/refmans/TreeTools/html/DoubleFactorial.html)</sup><sup> • </sup><sup>[12](https://www.rdocumentation.org/packages/phangorn/versions/0.0-2/topics/dfactorial)</sup> 对数实现之所以重要，是因为双阶乘增长很快：当 n = 0, 1, 2, … 时，(10<sup>n</sup>)!! 的十进制位数依次为 1, 4, 80, 1285, 17831, 228289, …（OEIS A114488）。<sup>[1](https://mathworld.wolfram.com/DoubleFactorial.html)</sup>

## References

1. [Weisstein, Eric W. "Double Factorial." MathWorld--A Wolfram Resource.](https://mathworld.wolfram.com/DoubleFactorial.html)
2. [DLMF §5.4 Special Values and Extrema, NIST Digital Library of Mathematical Functions.](https://dlmf.nist.gov/5.4)
3. [OEIS A001147: Double factorial of odd numbers.](https://oeis.org/A001147)
4. ["double factorial", Wiktionary (quoting Schuster 1902 and Meserve 1948), archived copy.](https://archive.bukohome.com/content/wiktionary_en_all_maxi_2024-05/A/double_factorial)
5. ["Introductions to Factorial", Wolfram Functions site.](https://functions.wolfram.com/introductions/PDF/Factorial.pdf)
6. [Pat Ballew, "Notes on the History of the Factorial" (2025), Pat'sBlog.](https://pballew.blogspot.com/2025/02/notes-on-history-of-factorial.html)
7. [David Callan, "A Combinatorial Survey of Identities for the Double Factorial" (2009).](https://pages.stat.wisc.edu/~callan/papers/Double_Factorial/Double_Factorial.pdf)
8. [David Callan, "A combinatorial survey of identities for the double factorial", arXiv:0906.1317.](https://arxiv.org/abs/0906.1317)
9. [Niraj Khare, Rudolph Lorentz, Catherine H. Yan, "Moments of Matching Statistics", Journal of Combinatorics.](https://people.tamu.edu/~huafei-yan/Files/final_joc158.pdf)
10. [Chapter 6: High-dimensional Data, DataMining documentation.](https://datamining.readthedocs.io/en/latest/part1/chap6.html)
11. [TreeTools R package: DoubleFactorial documentation.](https://search.r-project.org/CRAN/refmans/TreeTools/html/DoubleFactorial.html)
12. [phangorn R package: dfactorial documentation, RDocumentation.](https://www.rdocumentation.org/packages/phangorn/versions/0.0-2/topics/dfactorial)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 数与代数 › Arithmetic and number systems › Integer sequences and partitions › Special and named integers › Factorial-like and combinatorial named integers

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/double-factorial

English original: https://www.edgepedia.org/double-factorial
