# 近似整数

近似整数是指非常接近某个整数、但并不等于该整数的实数<sup>[1](https://mathworld.wolfram.com/AlmostInteger.html)</sup>。这个说法并不正式：一个数究竟要多接近最近的整数才算近似整数，并没有公认的门槛；而有趣的例子分为两类——一类是由深层数学结构所迫的近整数，另一类则看似是算术上的巧合<sup>[1](https://mathworld.wolfram.com/AlmostInteger.html)</sup><sup> • </sup><sup>[2](https://ems.press/content/serial-article-files/45316)</sup>。最著名的例子是 \( e^{\pi\sqrt{163}} \)，它与整数 262537412640768744 的差小于 \( 10^{-12} \)，其原因植根于模函数理论<sup>[3](https://oeis.org/A060295)</sup>。

| 关键事实 | 详情 |
|---|---|
| 定义 | 非常接近某个整数、但不等于该整数的数；该说法并不正式，没有固定的接近程度门槛<sup>[1](https://mathworld.wolfram.com/AlmostInteger.html)</sup> |
| 拉马努金常数 | \( e^{\pi\sqrt{163}} = 262537412640768743.99999999999925007259719818568887935\ldots \)，比整数 262537412640768744 小约 \( 7.5 \times 10^{-13} \)<sup>[3](https://oeis.org/A060295)</sup> |
| Heegner 数 | 恰有九个无平方因子整数给出类数为 1 的虚二次域：1、2、3、7、11、19、43、67、163<sup>[4](https://mathworld.wolfram.com/HeegnerNumber.html)</sup> |
| 机制 | 由于类数为 1，\( j((1+\sqrt{-163})/2) \) 是整数；在 q 展开中，前两项之后的所有项都很小，而前两项等于 \( -e^{\pi\sqrt{163}} + 744 \)<sup>[5](https://math.stackexchange.com/questions/4544/why-is-e-pi-sqrt163-almost-an-integer)</sup> |
| 其他误差 | \( e^{\pi\sqrt{37}} = 199148648 - 0.219 \times 10^{-4} \)；\( e^{\pi\sqrt{58}} = 24591257752 - 0.177 \times 10^{-6} \)<sup>[2](https://ems.press/content/serial-article-files/45316)</sup> |
| 黄金比 | \( \varphi^{19} = 9349.000107\ldots \) 与 \( \varphi^{25} = 167761.00000596\ldots \)，这是 Pisot 数的一般性质<sup>[6](https://math.stackexchange.com/questions/3131986/examples-of-transcendental-functions-giving-almost-integers)</sup> |
| 近期工作 | 2023 年用 θ 函数给出 \( e^{\pi} - \pi \approx 20 \) 的证明；2024 年证明了 d = 163 时的一个 Bagis–Glasser 级数；2025 年得到一个结果：不可数多个数的幂会趋近于整数<sup>[1](https://mathworld.wolfram.com/AlmostInteger.html)</sup><sup> • </sup><sup>[7](https://ar5iv.labs.arxiv.org/html/2402.08485)</sup><sup> • </sup><sup>[8](https://www.mdpi.com/2075-1680/14/6/420)</sup> |

## 拉马努金常数与 Heegner 数

它的小数展开以 262537412640768743.99999999999925007259719818568887935... 开头，因此比整数 262537412640768744 小约 \( 7.5 \times 10^{-13} \)<sup>[3](https://oeis.org/A060295)</sup>。显式的误差项是已知的：\( \exp(\pi\sqrt{163}) = A199743(6)^3 + 744 - 7.4992\ldots \times 10^{-13} \)<sup>[3](https://oeis.org/A060295)</sup>。

相关的无平方因子自变量取值来自 Heegner 数。Heegner 数是指这样一个正整数：它无平方因子，且与之相伴的虚二次域的类数为 1；这样的数只有九个：1、2、3、7、11、19、43、67 和 163<sup>[4](https://mathworld.wolfram.com/HeegnerNumber.html)</sup>。高斯证明了 d = −1、−2、−3、−7、−11、−19、−43、−67、−163 的域类数为 1，并猜想这九个就是全部<sup>[9](https://insa.nic.in/writereaddata/UpLoadedFiles/PINSA/Vol89_3_01.pdf)</sup>。

\( e^{\pi\sqrt{163}} \) 被称为“拉马努金常数”，这个名字可追溯到马丁·加德纳（Martin Gardner）1975 年的一则愚人节玩笑，文中声称拉马努金曾猜想这个常数是整数，而一个虚构的“约翰·布里洛（John Brillo）”于 1974 年 5 月证明了这一点<sup>[3](https://oeis.org/A060295)</sup>。这个常数本身是埃尔米特（Hermite）于 1859 年发现的；拉马努金研究过形如 \( \exp(\pi\sqrt{k}) \) 的近整数，但并未研究这个常数<sup>[3](https://oeis.org/A060295)</sup>。

## 为什么成立：j 不变量、类数与复乘

\( e^{\pi\sqrt{163}} \) 的近似整性不是巧合，而是一个关于模 j 函数的、具有定理形态的事实。解释如下<sup>[5](https://math.stackexchange.com/questions/4544/why-is-e-pi-sqrt163-almost-an-integer)</sup>：

1. 在自变量 \( \tau = (1+\sqrt{-163})/2 \) 处，j 不变量 \( j(\tau) \) 是整数。原因在于二次域 \( \mathbb{Q}(\sqrt{-163}) \) 的类数为 1，等价的说法是：判别式为 −163 的所有正定整二元二次型都等价<sup>[5](https://math.stackexchange.com/questions/4544/why-is-e-pi-sqrt163-almost-an-integer)</sup>。
2. j 函数有 q 展开 \( j(\tau) = q^{-1} + 744 + 196884q + 21493760q^2 + \cdots \)，其中 \( q = e^{2\pi i\tau} \)；归一化形式 \( j_1 = j - 744 \) 以 \( q^{-1} + 196884q + 21493760q^2 + \cdots \) 开头<sup>[10](https://arxiv.org/pdf/1801.08174)</sup>。
3. 在这个 τ 处，\( q^{-1} = -e^{\pi\sqrt{163}} \)，而从 \( 196884q \) 起的每一项都极小。除前两项外所有项都很小，而前两项等于 \( -e^{\pi\sqrt{163}} + 744 \)，因此 \( e^{\pi\sqrt{163}} \) 恰好落在某个整数的正下方<sup>[5](https://math.stackexchange.com/questions/4544/why-is-e-pi-sqrt163-almost-an-integer)</sup>。

j 值的整性属于复乘第一主定理的情形：对于虚二次域 K 中的一个序 O 以及一个真分式 O-理想 a，j 不变量 j(a) 是代数整数，且 K(j(a)) 是 O 的环类域<sup>[11](https://people.clas.ufl.edu/jeremybooher/files/class_number_one.pdf)</sup>。更一般地，j(τ) 是代数整数，其次数等于该二次域判别式的类数；当类数为 1 时，j(τ) 就是一个普通整数，而且事实上是一个完全立方数<sup>[12](https://sanweb.lib.msu.edu/crcmath/math/math/j/j003.htm)</sup>。对 \( j \) 的任意整系数多项式，同样的整性也成立，因为 \( j(\tau) \) 是整数；这里 \( \tau = (1+\sqrt{-163})/2 \)，对应 \( q = -e^{-\pi\sqrt{163}} \)<sup>[13](https://mathoverflow.net/questions/4775/why-are-powers-of-exp-pi-sqrt163-almost-integers)</sup>。

由于 \( e^{\pi\sqrt{163}} \) 等于一个整数减去一个小正量，而不是等于整数，所以这一现象是“接近”而非“相等”；深层理论解释了这种接近，而 q 展开中的微小修正项解释了它为什么会差那么一点<sup>[5](https://math.stackexchange.com/questions/4544/why-is-e-pi-sqrt163-almost-an-integer)</sup>。

## 其他近似整数家族

**黄金比的幂。** 黄金比 \( \varphi = (1+\sqrt{5})/2 \) 满足 \( \varphi^{19} = 9349.000107\ldots \) 与 \( \varphi^{25} = 167761.00000596\ldots \)<sup>[6](https://math.stackexchange.com/questions/3131986/examples-of-transcendental-functions-giving-almost-integers)</sup>。这是 Pisot 数的一般性质，下文将讨论。

**嵌套余弦。** 对近似恒等式反复施加余弦函数，会使其更接近整数；此外还存在其他嵌套余弦型的近似整数<sup>[1](https://mathworld.wolfram.com/AlmostInteger.html)</sup>。

**一个混合底数的例子。** Gauld（1984）发现 \( (\pi\sqrt{163})^{e} = 22806.9992\ldots \) 也是近整数<sup>[3](https://oeis.org/A060295)</sup>。

**系统性构造。** 求和恒等式 \( \sum_{k=0}^{n-1} e^{-k^2\pi/n} \approx (1+\sqrt{n})/2 \) 提供了一种构造精度越来越高的近似整数的方法<sup>[6](https://math.stackexchange.com/questions/3131986/examples-of-transcendental-functions-giving-almost-integers)</sup>。Borwein 兄弟的族 \( \sum 1/10^{(k/100)^2} \cong 100\sqrt{\pi/\ln 10} \) 至少精确到 18,000 位，在这种情况下，这个近似恒等式并非巧合<sup>[2](https://ems.press/content/serial-article-files/45316)</sup>。Hickerson 的序列 \( h_n = n!/(2(\ln 2)^{n+1}) \)（\( 1 \le n \le 17 \)）是一个已获解释、并非巧合的近似恒等式<sup>[2](https://ems.press/content/serial-article-files/45316)</sup>。

## 用数字说话

EMS 综述记录了三例 j 函数近整数的精确误差大小<sup>[2](https://ems.press/content/serial-article-files/45316)</sup>：

| 表达式 | 值 | 误差 |
|---|---|---|
| \( e^{\pi\sqrt{37}} \) | 199148648 − ... | \( 0.219 \times 10^{-4} \) |
| \( e^{\pi\sqrt{58}} \) | 24591257752 − ... | \( 0.177 \times 10^{-6} \) |
| \( e^{\pi\sqrt{163}} \) | 262537412640768744 − ... | \( 0.749 \times 10^{-12} \) |

对于 \( R = e^{\pi\sqrt{163}} \) 的幂，前六次幂与最近整数的差分别小于 \( 10^{-12} \)、\( 10^{-9} \)、\( 10^{-8} \)、\( 10^{-6} \)、\( 10^{-5} \) 和 \( 10^{-4} \)，不过标准的 j 函数证明并不能推广到更高次幂<sup>[13](https://mathoverflow.net/questions/4775/why-are-powers-of-exp-pi-sqrt163-almost-integers)</sup>。（同一个 MathOverflow 讨论串在别处把第六次幂的差列为小于 \( 10^{-2} \)；该讨论串中的这两处说法相互矛盾。）

## 与相关现象的比较

Pisot 数。Pisot 数是指这样一个实代数整数 \( \theta > 1 \)：它的其余所有伽罗瓦共轭的绝对值都严格小于 1；黄金比就是一个非平凡的例子<sup>[14](https://encyclopediaofmath.org/wiki/Pisot_number)</sup>。Pisot 数具有这样的性质：对适当的 \( \lambda \)，当 \( n \to \infty \) 时 \( \|\lambda\theta^n\| \to 0 \)，也就是说其幂趋近于整数；这一性质是否刻画了该集合，仍是未决问题（Pisot 猜想）<sup>[14](https://encyclopediaofmath.org/wiki/Pisot_number)</sup>。Pisot 1938 年的学位论文与 Vijayaraghavan 1941 年的论文各自独立地把这类数刻画为满足以下条件的代数数 \( \lambda > 1 \)：存在非零实数 x，使得 \( \lambda^n x \to 0 \pmod 1 \)<sup>[15](https://math.montana.edu/jarek/documents/papers/pisotthm.pdf)</sup>。

**巧合还是结构。** EMS 综述明确划出了这一区分：\( \exp(\pi\sqrt{n}) \) 型近整数来自 j 函数的一个深层性质，而 \( e^{\pi} - \pi = 19.999099979\ldots \) 则很可能是真正的算术巧合<sup>[2](https://ems.press/content/serial-article-files/45316)</sup>。2025 年的一项构造表明，近整数幂也可以通过解析设计来人为制造：对任意不以超过指数速度趋于零的序列 \( \xi_n \) 以及任意 \( \delta_n \)，都存在不可数多个 \( \alpha > 1 \)，使得对无穷多个 n，小数部分 \( \{\xi_n\alpha^n\} \) 小于 \( \delta_n \)<sup>[8](https://www.mdpi.com/2075-1680/14/6/420)</sup>。

## 历史

埃尔米特于 1859 年发现了 \( e^{\pi\sqrt{163}} \)，而由模函数研究近整数的历史还要更早：一大类无理近似整数来自模函数与 j 函数，拉马努金（1913–14）给出了壮观的例子，更早的研究则有埃尔米特（1859）、克罗内克（Kronecker，1863）和史密斯（Smith）<sup>[3](https://oeis.org/A060295)</sup><sup> • </sup><sup>[1](https://mathworld.wolfram.com/AlmostInteger.html)</sup>。拉马努金关于类数为二的判别式的近整数见于他的工作<sup>[12](https://sanweb.lib.msu.edu/crcmath/math/math/j/j003.htm)</sup>；他的椭圆函数三次理论给出量 \( t_n \)，对某些 n，这些量生成 \( \mathbb{Q}(\sqrt{-n}) \) 的 Hilbert 类域，从而成为海因里希·韦伯（Heinrich Weber）意义上的类不变量<sup>[16](https://www.cambridge.org/core/services/aop-cambridge-core/content/view/C7FE02BDC90B8FA0AD07015CB77F1F65/S0008439500010900a.pdf/ramanujan_and_the_modular_jinvariant.pdf)</sup>。

在类数方面，高斯证明了上述九个域的类数为 1，并猜想它们是仅有的<sup>[9](https://insa.nic.in/writereaddata/UpLoadedFiles/PINSA/Vol89_3_01.pdf)</sup>。海尔布伦（Heilbronn）与林富特（Linfoot）于 1934 年证明类数问题有一个有限性的答案，西格尔（Siegel）1936 年给出了更一般的结果<sup>[9](https://insa.nic.in/writereaddata/UpLoadedFiles/PINSA/Vol89_3_01.pdf)</sup>；他们还证明，任何额外的 Heegner 数都必须超过某个界<sup>[4](https://mathworld.wolfram.com/HeegnerNumber.html)</sup>。Heegner（1952）证明了这九个数的列表是完整的，尽管他的证明在当时未被接受为完整；这一结果由艾伦·贝克（Alan Baker，1966）和哈罗德·斯塔克（Harold Stark，1967）独立确立，后来的审查表明 Heegner 的证明本质上是正确的<sup>[4](https://mathworld.wolfram.com/HeegnerNumber.html)</sup><sup> • </sup><sup>[9](https://insa.nic.in/writereaddata/UpLoadedFiles/PINSA/Vol89_3_01.pdf)</sup>。Heegner 的方法借鉴了韦伯的定理，这些定理规定了模函数值在什么条件下生成虚二次域中某个序所对应的环类域。<sup>[11](https://people.clas.ufl.edu/jeremybooher/files/class_number_one.pdf)</sup>

\( e^{\pi} - \pi \approx 20 \) 这一近似恒等式约在 1988 年由 N. J. A. 斯隆（N. J. A. Sloane）、J. H. 康威（J. H. Conway）和 S. 普卢夫（S. Plouffe）注意到，证明步骤最迟于 1998 年出现在诺姆·埃尔基斯（Noam Elkies）的讲义中<sup>[1](https://mathworld.wolfram.com/AlmostInteger.html)</sup>。

## 近期进展

**e^π − π ≈ 20 的一个证明。** 2023 年 9 月，A. 多曼（A. Doman）通过与雅可比 θ 函数相关的一个和式解释了近似恒等式 \( e^{\pi} - \pi \approx 20 \)；该证明于 2023 年 9 月 18 日公开，并由 D. 班伯格（D. Bamberger）于 2023 年 11 月 26 日通报<sup>[1](https://mathworld.wolfram.com/AlmostInteger.html)</sup>。

**2024 年关于 d = 163 的一个证明。** Bagis 与 Glasser 于 2013 年提出了一个关于 1/π 的、拉马努金型猜想级数，与判别式 d = 163 的类数 \( h(-d) = 1 \) 有关；2024 年给出了证明，其推导利用了 Chudnovsky 兄弟公式与 Borwein 兄弟公式对 \( \lambda^*(163) \) 和 \( \alpha(163) \) 的求值<sup>[7](https://ar5iv.labs.arxiv.org/html/2402.08485)</sup>。Bagis–Glasser 公式每项约给出 32 位数字，而 Chudnovsky 算法每项约给出 14 位数字<sup>[7](https://ar5iv.labs.arxiv.org/html/2402.08485)</sup>。

**2025 年的一个存在性结果。** 2025 年那篇关于“其幂可任意接近整数”的数的论文，确立了这类数构成不可数集合，并表明：在误差趋于零的速度快于 1/n 的任何幂的参数范围内，所构造的数是刘维尔数，其无理性指数为无穷大<sup>[8](https://www.mdpi.com/2075-1680/14/6/420)</sup>。

## 搜索方法与工具

计算搜索是对构造性家族的补充。由罗伯特·穆纳福（Robert Munafo）开发的软件包 ries 有助于寻找近似整数，更一般地说，有助于寻找对特定数（从 \( \pi \) 到物理常数）给出良好但不精确近似的方程<sup>[17](https://www.wired.com/2013/03/almost-integers/)</sup>。在构造方面，恒等式 \( \sum_{k=0}^{n-1} e^{-k^2\pi/n} \approx (1+\sqrt{n})/2 \) 随 n 增大而生成精度递增的近似整数<sup>[6](https://math.stackexchange.com/questions/3131986/examples-of-transcendental-functions-giving-almost-integers)</sup>，而 EMS 综述中的家族 \( u_n = \ln(2) \cdot \sum_{k=-\infty}^{\infty} 1/(2^{k/2}+2^{-k/2})^n \) 产生的数极其接近有理数以及 \( \pi \) 的有理倍数，例如 \( u_1 = \pi + 0.53\ldots \times 10^{-11} \) 与 \( u_2 = 1 + 0.48\ldots \times 10^{-10} \)；这种接近性可由与二进制最大公约数算法相关的梅林变换分析来解释<sup>[2](https://ems.press/content/serial-article-files/45316)</sup>。

## References

1. [Almost Integer, Wolfram MathWorld](https://mathworld.wolfram.com/AlmostInteger.html)
2. [A New Family of Almost Identities, EMS](https://ems.press/content/serial-article-files/45316)
3. [A060295, OEIS](https://oeis.org/A060295)
4. [Heegner Number, Wolfram MathWorld](https://mathworld.wolfram.com/HeegnerNumber.html)
5. [Why is e^{π√163} almost an integer?, Math Stack Exchange](https://math.stackexchange.com/questions/4544/why-is-e-pi-sqrt163-almost-an-integer)
6. [Examples of transcendental functions giving almost integers, Math Stack Exchange](https://math.stackexchange.com/questions/3131986/examples-of-transcendental-functions-giving-almost-integers)
7. [Proof of a Bagis–Glasser Ramanujan-type series related to the Heegner number d = 163, arXiv](https://ar5iv.labs.arxiv.org/html/2402.08485)
8. [Numbers Whose Powers Are Arbitrarily Close to Integers, MDPI (2025)](https://www.mdpi.com/2075-1680/14/6/420)
9. [History and development of algebraic number theory, INSA](https://insa.nic.in/writereaddata/UpLoadedFiles/PINSA/Vol89_3_01.pdf)
10. [Asymptotics of j-function integrals associated to real quadratic ideal classes, arXiv](https://arxiv.org/pdf/1801.08174)
11. [Modular Curves and the Class Number One Problem, lecture notes, University of Florida](https://people.clas.ufl.edu/jeremybooher/files/class_number_one.pdf)
12. [j-Function, CRC Concise Encyclopedia of Mathematics](https://sanweb.lib.msu.edu/crcmath/math/math/j/j003.htm)
13. [Why are powers of exp(pi sqrt(163)) almost integers?, MathOverflow](https://mathoverflow.net/questions/4775/why-are-powers-of-exp-pi-sqrt163-almost-integers)
14. [Pisot number, Encyclopedia of Mathematics](https://encyclopediaofmath.org/wiki/Pisot_number)
15. [A dynamical proof of Pisot's theorem](https://math.montana.edu/jarek/documents/papers/pisotthm.pdf)
16. [Ramanujan and the Modular j-Invariant, Canadian Mathematical Bulletin](https://www.cambridge.org/core/services/aop-cambridge-core/content/view/C7FE02BDC90B8FA0AD07015CB77F1F65/S0008439500010900a.pdf/ramanujan_and_the_modular_jinvariant.pdf)
17. [Almost Integers, WIRED (2013)](https://www.wired.com/2013/03/almost-integers/)

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

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

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/almost-integer

English original: https://www.edgepedia.org/almost-integer
