# 拉马努金和

**拉马努金和**（Ramanujan's sum，亦称拉马努金和或拉马努金三角和），记作 \( c_{q}(n) \)，是斯里尼瓦萨·拉马努金（Srinivasa Ramanujan）于1916年引入的一种算术函数：它是本原 \( q \) 次单位根的 \( n \) 次幂之和，等价地说，是在与 \( q \) 互素的、从1到 \( q \) 的整数上对复指数求和<sup>[1](https://ieeexplore.ieee.org/document/6839014/)</sup><sup> • </sup><sup>[2](https://arxiv.org/abs/1104.1906)</sup>。对每个固定的 \( q \)，它是 \( n \) 的一个周期性的、取整数值的函数，并且充当构建模块，用以将其他算术函数展开为如今所谓的拉马努金展开<sup>[3](https://hrj.episciences.org/180/pdf)</sup>。

| 关键事实 | 详情 |
|---|---|
| 定义 | \( c_{q}(n) = \sum_{j \in \mathbb{Z}_q^*} e(jn/q) \)，其中 \( \mathbb{Z}_q^* \) 是从1到 \( q \) 中与 \( q \) 互素的整数集合，\( e(x) = \exp(2\pi i x) \)<sup>[4](https://link.springer.com/article/10.1007/s12188-024-00282-4)</sup> |
| 起源 | 由拉马努金于1916年引入<sup>[1](https://ieeexplore.ieee.org/document/6839014/)</sup> |
| 闭式 | \( c_{q}(n) = \varphi(q) \, \mu\big(q/(n,q)\big) / \varphi\big(q/(n,q)\big) \)，其中 \( \varphi \) 为欧拉函数，\( \mu \) 为默比乌斯函数<sup>[4](https://link.springer.com/article/10.1007/s12188-024-00282-4)</sup> |
| 大小界 | \( |c_{q}(n)| \le (n,q) \)，即 \( n \) 与 \( q \) 的最大公约数<sup>[4](https://link.springer.com/article/10.1007/s12188-024-00282-4)</sup> |
| 乘性 | 当 \( (q_1, q_2) = 1 \) 时，\( C_{q_1 q_2}(n) = C_{q_1}(n) C_{q_2}(n) \)，且 \( C_1(n) = 1 \)<sup>[5](https://www.mdpi.com/2227-7390/13/2/281)</sup> |
| 整数值 | \( c_q(n) \) 总是普通整数，尽管这一点从定义中并不显然；当 \( (q,n) = 1 \) 时，\( c_q(n) = \mu(q) \)<sup>[3](https://hrj.episciences.org/180/pdf)</sup> |
| 现代应用 | 拉马努金和刻画离散时间信号中的周期性，并支撑信号处理中的拉马努金滤波器组<sup>[6](https://www.sciencedirect.com/science/article/pii/S106352032500106X)</sup> |

## 定义与基本性质

对正整数 \( q \) 和 \( n \)，该和在模 \( q \) 的缩剩余系上定义<sup>[4](https://link.springer.com/article/10.1007/s12188-024-00282-4)</sup>：

\[ c_{q}(n) = \sum_{\substack{a=1 \\ (a,q)=1}}^{q} \exp\!\left( \frac{2\pi i\, n a}{q} \right). \]

等价地说，它是本原 \( q \) 次单位根的 \( n \) 次幂之和<sup>[2](https://arxiv.org/abs/1104.1906)</sup>。同一量有时写作 \( C_m(n) \)，其中 \( k \) 取遍小于 \( m \) 且与 \( m \) 互素的整数<sup>[7](https://repository.ias.ac.in/36101/1/36101.pdf)</sup>。

若干性质直接可得。该和对 \( n \) 具有周期性，周期为 \( q \)，因为将 \( n \) 替换为 \( n + q \) 时每个指数项不变。它是实的，事实上是整数：将定义视为分圆域 \( \mathbb{Q}(\zeta_q) \) 中代数整数 \( \zeta_q^{\,n} \) 的迹，即可看出其整性，而下文的默比乌斯公式给出第二个证明<sup>[3](https://hrj.episciences.org/180/pdf)</sup>。闭式

\[ c_{q}(n) = \varphi(q)\, \frac{\mu\big(q/(n,q)\big)}{\varphi\big(q/(n,q)\big)} \]

通过欧拉函数与默比乌斯函数表达 \( c_q(n) \)，并蕴含界 \( |c_q(n)| \le (n,q) \)<sup>[4](https://link.springer.com/article/10.1007/s12188-024-00282-4)</sup>。特别地，当 \( n \) 与 \( q \) 无公因子时，\( c_q(n) = \mu(q) \)，对无平方因子的 \( q \) 其值为 \( \pm 1 \)，否则为0<sup>[3](https://hrj.episciences.org/180/pdf)</sup><sup> • </sup><sup>[4](https://link.springer.com/article/10.1007/s12188-024-00282-4)</sup>。作为 \( q \) 的函数，该和是乘性的：对互素的 \( q_1 \) 与 \( q_2 \)，\( C_{q_1 q_2}(n) = C_{q_1}(n) C_{q_2}(n) \)<sup>[5](https://www.mdpi.com/2227-7390/13/2/281)</sup>。

这些和还满足一个正交关系，使其可用作基，类似于复指数在通常的傅里叶分析中所起的作用：\( c_r(h+n)\,c_q(h) \) 对 \( h \) 的长期平均，当 \( r = q \) 时等于 \( c_q(n) \)，否则为0<sup>[4](https://link.springer.com/article/10.1007/s12188-024-00282-4)</sup>。

## 拉马努金展开

拉马努金本人的动机是要表明，数论中若干标准的算术函数可以写成函数 \( c_q(n) \) 的线性组合<sup>[8](https://systems.caltech.edu/dsp/PPVSquare.pdf)</sup>。形如

\[ f(n) = \sum_{q=1}^{\infty} \hat{f}(q)\, c_q(n) \]

的级数称为拉马努金展开（或拉马努金-傅里叶级数），因为它模仿傅里叶展开，以和 \( c_q(n) \) 扮演指数基的角色；系数 \( \hat{f}(q) \) 称为拉马努金系数<sup>[3](https://hrj.episciences.org/180/pdf)</sup>。

拉马努金1918年的论文推导了多种此类表达式<sup>[3](https://hrj.episciences.org/180/pdf)</sup>。对于除数函数 \( d(n) \)，他证明了

\[ d(n) = -\sum_{q=1}^{\infty} \frac{\log q}{q}\, c_q(n), \]

而对于 \( r(n) \)，即把 \( n \) 写成两平方和的方法数，

\[ r(n) = \pi \sum_{q=1}^{\infty} \frac{(-1)^q}{2q+1}\, c_{2q+1}(n). \]

哈代后来给出了冯·曼戈尔特函数 \( \Lambda(n) \) 的一个更复杂的展开，该函数定义为：当 \( n \) 是素数 \( p \) 的幂时取 \( \log p \)，否则为零<sup>[3](https://hrj.episciences.org/180/pdf)</sup>。

这一框架直接联系到素数理论。拉马努金在其论文中观察到，断言

\[ \sum_{q=1}^{\infty} \frac{c_q(n)}{q} = 0 \]

等价于素数定理；同一恒等式表明拉马努金系数并不唯一，因为它是零函数的一个展开<sup>[3](https://hrj.episciences.org/180/pdf)</sup>。在哈代的展开以及关于拉马努金展开的一个猜想性的维纳-辛钦型公式的基础上，H. 加迪亚尔（H. Gadiyar）与 R. 帕德玛（R. Padma）给出了不超过 \( x \) 的孪生素数数目的哈代-李特尔伍德猜想公式的启发式推导<sup>[8](https://systems.caltech.edu/dsp/PPVSquare.pdf)</sup><sup> • </sup><sup>[3](https://hrj.episciences.org/180/pdf)</sup>。

## 历史背景

该和出现在拉马努金的论文《论某些三角和及其在数论中的应用》中，该文于1916年发表于《剑桥哲学会会刊》（第22卷，第159至184页）<sup>[9](https://www.jstor.org/stable/83658)</sup><sup> • </sup><sup>[3](https://hrj.episciences.org/180/pdf)</sup>。剑桥数学家 G. H. 哈代（G. H. Hardy）曾将拉马努金带到英国并与其合作，他在1918年《美国国家科学院院刊》的论文《论将一个数表示为任意多个平方之和，特别是五个或七个平方之和》（第4卷，第7期，第189至193页）中借用了这些三角和，该文在引用格莱舍（Glaisher）和莫德尔（Mordell）工作的同时引用了拉马努金1916年的论文<sup>[9](https://www.jstor.org/stable/83658)</sup>。这些和也进入了哈代-拉马努金关于分拆函数渐近公式的工作，其中使用了以三角和表示 \( s = 4, 6, 8 \) 时的 \( r_s(n) \) 的表示式<sup>[10](https://www.imsc.res.in/~rao/ramanujan/collectedpapers/combinatory/images/paper36.pdf)</sup>。

在本学科的标准参考结构中，拉马努金和位于周期数论函数之列：每个模 \( k \) 周期的函数都有有限傅里叶级数，而拉马努金和是一个典范例子，与狄利克雷特征 \( \chi \) 相关联的高斯和 \( G(n,\chi) = \sum_{m=1}^{k} \chi(m)\, e^{2\pi i mn/k} \) 则是其加权推广<sup>[11](https://dlmf.nist.gov/27.10)</sup>。

## 信号处理

自2010年代初以来，拉马努金和在工程领域获得了第二次生命。由于 \( c_q(n) \) 是周期且取整数值的，拉马努金和非常适合刻画离散时间信号中的周期性，一个重要的应用是构造拉马努金滤波器组<sup>[6](https://www.sciencedirect.com/science/article/pii/S106352032500106X)</sup>。在此背景下，信号空间 \( \ell^2(\mathbb{Z}_N) \) 可正交分解为子空间 \( S_{r,q_i} \)，其中每个 \( S_{r,q_i} \) 是由拉马努金和 \( c_{q_i} \) 的连续移位生成的 \( \varphi(q_i) \) 维子空间；这一分解指导了信号恢复中需要更新抽取比的输入通道的识别<sup>[6](https://www.sciencedirect.com/science/article/pii/S106352032500106X)</sup>。

这一方向的早期工作提出将拉马努金和作为信号处理工具，用于分析具有许多共振 \( p/q \) 的算术序列，并应用于低频噪声<sup>[12](https://arxiv.org/abs/math-ph/0209002)</sup>。综述性论述分两部分总结了该算术函数及其信号处理应用，先讲基础，再讲有限冲激响应（FIR）表示<sup>[1](https://ieeexplore.ieee.org/document/6839014/)</sup>。一条相关的工作路线将有限时长序列表示为拉马努金和展开，扩展了拉马努金将算术函数表达为 \( c_q(n) \) 的线性组合的原始纲领<sup>[8](https://systems.caltech.edu/dsp/PPVSquare.pdf)</sup>。

工程界的采纳印证了该领域研究者注意到的一种模式：一个为纯数论目的而引入的数学概念，可以在数十年后获得实际影响，尽管最初的想法并非由任何此类应用所启发<sup>[13](https://pmc.ncbi.nlm.nih.gov/articles/PMC6939226/)</sup>。

## 相关和与推广

拉马努金和属于有限群上指数和这一族。高斯和通过用狄利克雷特征对指数项加权来推广它；对于模 \( k \) 的本原特征，\( |G(1,\chi)|^2 = k \)，而本原特征的有限傅里叶展开用其高斯和来书写<sup>[11](https://dlmf.nist.gov/27.10)</sup>。拉马努金和之积的和，以及与除数和、最大公约数函数相联系的广义拉马努金和，都已被作为独立对象加以研究<sup>[2](https://arxiv.org/abs/1104.1906)</sup><sup> • </sup><sup>[14](https://arxiv.org/abs/1810.08373)</sup>。现代工作还通过超特征理论重新推导了拉马努金和的许多性质，超特征是群论中一个发展中的课题<sup>[3](https://hrj.episciences.org/180/pdf)</sup>。

## References

1. [Ramanujan Sums in the Context of Signal Processing, Part I: Fundamentals, IEEE](https://ieeexplore.ieee.org/document/6839014/)
2. [Sums of products of Ramanujan sums, arXiv](https://arxiv.org/abs/1104.1906)
3. [M. Ram Murty, Ramanujan Series for Arithmetical Functions, Hardy-Ramanujan Journal 36 (2013), 21-33](https://hrj.episciences.org/180/pdf)
4. [On Ramanujan expansions and primes in arithmetic progressions, Abhandlungen aus dem Mathematischen Seminar der Universität Hamburg](https://link.springer.com/article/10.1007/s12188-024-00282-4)
5. [Summatory Multiplicative Arithmetic Functions: Scaling and Renormalization, Mathematics (MDPI) 13, 281](https://www.mdpi.com/2227-7390/13/2/281)
6. [Ramanujan sums in signal recovery and uncertainty principle inequalities, ScienceDirect](https://www.sciencedirect.com/science/article/pii/S106352032500106X)
7. [Some Applications of Ramanujan's Trigonometrical Sum C_m(n), Indian Academy of Sciences repository](https://repository.ias.ac.in/36101/1/36101.pdf)
8. [Ramanujan-Sum Expansions for Finite Duration (FIR) Sequences, Caltech Systems](https://systems.caltech.edu/dsp/PPVSquare.pdf)
9. [G. H. Hardy, On the Representation of a Number as the Sum of Any Number of Squares, and in Particular of Five or Seven, PNAS Vol. 4, No. 7 (1918), pp. 189-193, JSTOR](https://www.jstor.org/stable/83658)
10. [Hardy and Ramanujan, Asymptotic Formulæ in Combinatory Analysis, Collected Papers of Srinivasa Ramanujan](https://www.imsc.res.in/~rao/ramanujan/collectedpapers/combinatory/images/paper36.pdf)
11. [DLMF §27.10 Periodic Number-Theoretic Functions, NIST](https://dlmf.nist.gov/27.10)
12. [Ramanujan sums for signal processing of low frequency noise, arXiv](https://arxiv.org/abs/math-ph/0209002)
13. [Srinivasa Ramanujan and signal-processing problems, PMC](https://pmc.ncbi.nlm.nih.gov/articles/PMC6939226/)
14. [Factorization Theorems for Relatively Prime Divisor Sums, GCD Sums and Generalized Ramanujan Sums, arXiv](https://arxiv.org/abs/1810.08373)

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

Topic: 物质世界与数学 › 数学与统计学 › 数与代数 › Number theory › Elementary number theory › Arithmetic functions

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/ramanujans-sum

English original: https://www.edgepedia.org/ramanujans-sum
