# 高斯整数

高斯整数是形如 \( a + bi \) 的复数，其中 \( a \) 与 \( b \) 为普通整数；全体高斯整数构成一个环，记作 \( \mathbb{Z}[i] \)。<sup>[1](https://faculty.etsu.edu/gardnerr/4127/notes/IX-47.pdf)</sup> 该环以卡尔·弗里德里希·高斯（Carl Friedrich Gauss）命名，他在1832年关于双二次剩余的第二篇论文中引入这些数，用以表述双二次互反律。<sup>[2](https://www.claymath.org/wp-content/uploads/2022/03/cmip07c.pdf)</sup> 高斯整数是普通整数之外最简单的代数整数环，并且与普通整数共享其最重要的算术性质：每个元素都唯一分解为素元之积。<sup>[3](https://www.maths.dur.ac.uk/users/jack.g.shotton/Teaching/number-theory/notes.html)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | \( \mathbb{Z}[i] = \{a + bi : a, b \in \mathbb{Z}\} \)，复数的一个子环<sup>[4](https://webspace.science.uu.nl/~beuke106/getaltheorie/getalscript.pdf)</sup> |
| 范数 | \( N(a+bi) = a^2 + b^2 \)，具有乘性：\( N(\alpha\beta) = N(\alpha)N(\beta) \)<sup>[4](https://webspace.science.uu.nl/~beuke106/getaltheorie/getalscript.pdf)</sup> |
| 欧几里得性质 | \( \mathbb{Z}[i] \) 是以 \( N \) 为欧几里得函数的欧几里得整环；带余除法成立，且 \( N(r) \le N(\beta)/2 \)<sup>[4](https://webspace.science.uu.nl/~beuke106/getaltheorie/getalscript.pdf)</sup> |
| 单位 | 恰为 \( 1, -1, i, -i \)，即范数为1的元素<sup>[4](https://webspace.science.uu.nl/~beuke106/getaltheorie/getalscript.pdf)</sup> |
| 分解 | 每个欧几里得整环都是主理想整环和唯一分解整环，因此高斯整数在不计单位的意义下唯一分解为高斯素数之积<sup>[3](https://www.maths.dur.ac.uk/users/jack.g.shotton/Teaching/number-theory/notes.html)</sup> |
| 起源 | 由高斯于1832年在关于双二次剩余的工作中引入<sup>[2](https://www.claymath.org/wp-content/uploads/2022/03/cmip07c.pdf)</sup> |
| 互素概率 | 随机选取两个高斯整数，它们互素的概率为 \( 6/(\pi^2 K) \approx 0.66370 \)，其中 \( K \) 为卡塔兰常数<sup>[5](https://mathworld.wolfram.com/GaussianInteger.html)</sup> |

## 范数

高斯整数 \( \alpha = a + bi \) 的范数为 \( N(\alpha) = a^2 + b^2 \)。<sup>[1](https://faculty.etsu.edu/gardnerr/4127/notes/IX-47.pdf)</sup> 这是通常的复数模 \( |a+bi| = \sqrt{a^2+b^2} \) 的平方；有些作者将范数定义为模本身，因此在比较不同文献时需加留意。<sup>[5](https://mathworld.wolfram.com/GaussianInteger.html)</sup> 从几何上看，\( N(\alpha) \) 是平面上原点到点 \( (a,b) \) 的距离的平方，它使人们能够比较高斯整数的大小——否则高斯整数本无自然的顺序。<sup>[6](https://math.libretexts.org/Bookshelves/Combinatorics_and_Discrete_Mathematics/Elementary_Number_Theory_%28Barrus_and_Clark%29/01%3A_Chapters/1.13%3A_The_Gaussian_Integers)</sup>

范数是乘性的：对所有高斯整数 \( \alpha, \beta \)，有 \( N(\alpha\beta) = N(\alpha)N(\beta) \)。<sup>[4](https://webspace.science.uu.nl/~beuke106/getaltheorie/getalscript.pdf)</sup> 证明将 \( N(\alpha) \) 等同于 \( |\alpha|^2 \)，并利用 \( |\alpha\beta| = |\alpha| \cdot |\beta| \)。<sup>[4](https://webspace.science.uu.nl/~beuke106/getaltheorie/getalscript.pdf)</sup> 等价地，\( N(x) = x\bar{x} \)，其中 \( \bar{x} \) 为复共轭。<sup>[3](https://www.maths.dur.ac.uk/users/jack.g.shotton/Teaching/number-theory/notes.html)</sup> 乘性是此环算术的引擎：由于范数是非负整数，高斯整数的一个分解必然迫使它的范数也相应分解。<sup>[6](https://math.libretexts.org/Bookshelves/Combinatorics_and_Discrete_Mathematics/Elementary_Number_Theory_%28Barrus_and_Clark%29/01%3A_Chapters/1.13%3A_The_Gaussian_Integers)</sup>

## 欧几里得整环

一个整环若允许带余除法，则称为欧几里得的：对任意 \( x \) 和非零 \( y \)，存在 \( q, r \) 使得 \( x = qy + r \)，且或者 \( r = 0 \)，或者 \( r \) 的欧几里得函数值小于 \( y \) 的。<sup>[3](https://www.maths.dur.ac.uk/users/jack.g.shotton/Teaching/number-theory/notes.html)</sup> 高斯整数以 \( N \) 为欧几里得函数满足这一性质。<sup>[4](https://webspace.science.uu.nl/~beuke106/getaltheorie/getalscript.pdf)</sup>

证明是几何的。环 \( \mathbb{Z}[i] \) 作为整坐标点的正方格嵌入复平面。要用 \( y \) 除 \( x \)，先计算精确的复商 \( \lambda = x/y \)，再将其实部与虚部分别四舍五入到最近的整数，得到格点 \( q \)。舍入后的点落在正方形 \( [-1/2, 1/2] \times [-1/2, 1/2] \) 内，故 \( N(\lambda - q) \le 1/4 + 1/4 = 1/2 \)，而余数 \( r = x - qy \) 满足 \( N(r) \le N(y)/2 \)。<sup>[4](https://webspace.science.uu.nl/~beuke106/getaltheorie/getalscript.pdf)</sup><sup> • </sup><sup>[3](https://www.maths.dur.ac.uk/users/jack.g.shotton/Teaching/number-theory/notes.html)</sup>

由于带余除法可行，欧几里得算法在 \( \mathbb{Z}[i] \) 中与在整数中完全一样地运行，并且总能产生一个最大公约数，且在乘以单位的意义下唯一。<sup>[6](https://math.libretexts.org/Bookshelves/Combinatorics_and_Discrete_Mathematics/Elementary_Number_Theory_%28Barrus_and_Clark%29/01%3A_Chapters/1.13%3A_The_Gaussian_Integers)</sup> 于是可以应用一个标准定理：每个欧几里得整环都是主理想整环，而每个主理想整环都是唯一分解整环。<sup>[3](https://www.maths.dur.ac.uk/users/jack.g.shotton/Teaching/number-theory/notes.html)</sup> 逆命题一般不成立；例如 \( \mathbb{Z}\left[\frac{1+\sqrt{-19}}{2}\right] \) 是主理想整环但不是欧几里得整环。<sup>[3](https://www.maths.dur.ac.uk/users/jack.g.shotton/Teaching/number-theory/notes.html)</sup>

## 单位与高斯素数

\( \mathbb{Z}[i] \) 的单位，即环中具有乘法逆元的元素，恰为 \( 1, -1, i, -i \)。<sup>[1](https://faculty.etsu.edu/gardnerr/4127/notes/IX-47.pdf)</sup> 这由范数推出：一个高斯整数是单位当且仅当 \( N(\epsilon) = 1 \)，而 \( a^2 + b^2 = 1 \) 迫使 \( (a,b) \in \{(1,0), (-1,0), (0,1), (0,-1)\} \)。<sup>[4](https://webspace.science.uu.nl/~beuke106/getaltheorie/getalscript.pdf)</sup>

高斯素数是不能写成两个非单位之积的非零非单位元素。<sup>[6](https://math.libretexts.org/Bookshelves/Combinatorics_and_Discrete_Mathematics/Elementary_Number_Theory_%28Barrus_and_Clark%29/01%3A_Chapters/1.13%3A_The_Gaussian_Integers)</sup> 范数提供了一个充分判别法：若 \( N(\alpha) \) 是素数，则 \( \alpha \) 是高斯素数，因为任何分解都会迫使范数也分解。<sup>[6](https://math.libretexts.org/Bookshelves/Combinatorics_and_Discrete_Mathematics/Elementary_Number_Theory_%28Barrus_and_Clark%29/01%3A_Chapters/1.13%3A_The_Gaussian_Integers)</sup> 逆命题不成立：\( 3 \) 的范数 \( N(3) = 9 \) 是合数，但 \( 3 \) 仍是高斯素数。<sup>[6](https://math.libretexts.org/Bookshelves/Combinatorics_and_Discrete_Mathematics/Elementary_Number_Theory_%28Barrus_and_Clark%29/01%3A_Chapters/1.13%3A_The_Gaussian_Integers)</sup>

普通素数在 \( \mathbb{Z}[i] \) 中表现出两种截然不同的行为。素数 \( 5 \) 不是高斯素数，因为 \( 5 = (1+2i)(1-2i) \)，而两个因子范数均为5且不可约。<sup>[1](https://faculty.etsu.edu/gardnerr/4127/notes/IX-47.pdf)</sup> 相比之下，素数 \( 3 \) 在 \( \mathbb{Z}[i] \) 中仍为素数。<sup>[6](https://math.libretexts.org/Bookshelves/Combinatorics_and_Discrete_Mathematics/Elementary_Number_Theory_%28Barrus_and_Clark%29/01%3A_Chapters/1.13%3A_The_Gaussian_Integers)</sup> 对于纯虚高斯整数 \( bi \)，该元素是高斯素数当且仅当 \( |b| \) 是模4余3的普通素数。<sup>[7](https://mathworld.wolfram.com/GaussianPrime.html)</sup> 这种由模4剩余决定的分裂，正是经典判别法在高斯整数中的体现：一个正整数可表为两平方和，当且仅当其每个模4余3的素因子都出现偶数次。<sup>[8](https://arxiv.org/abs/1404.0187)</sup>

## 历史

高斯在其著作《双二次剩余理论》（*Theoria residuorum biquadraticorum*）的第二部分（1832年）中引入了数 \( a + bi \)——这是他最后一篇关于数论的长论文——并用它们表述了双二次互反律。<sup>[2](https://www.claymath.org/wp-content/uploads/2022/03/cmip07c.pdf)</sup> 他论证道，当算术扩展到虚数时，数论才显现出其全部的简洁与自然之美。<sup>[9](https://www.sophiararebooks.com/pages/books/6172/carl-friedrich-gauss/theoria-residuorum-biquadraticorum-commentatio-prima-secunda)</sup> 高斯利用高斯整数首次证明了双二次互反律，这一定律此前曾由莱昂哈德·欧拉（Leonhard Euler）研究过。<sup>[10](https://wiredspace.wits.ac.za/server/api/core/bitstreams/a80b572b-7cc4-4d66-aedf-52c65ca9c433/content)</sup> 然而，该定律的第一个印刷证明直到1844年才由G. 艾森斯坦（G. Eisenstein）发表，此前雅可比（Jacobi）已在其柯尼斯堡讲座中稍早给出了一个证明。<sup>[2](https://www.claymath.org/wp-content/uploads/2022/03/cmip07c.pdf)</sup> 这项工作为代数数论打开了大门。<sup>[2](https://www.claymath.org/wp-content/uploads/2022/03/cmip07c.pdf)</sup>

## 与相关环的比较

高斯整数是若干具有良好算术性质的复整数环之一。艾森斯坦整数（Eisenstein integers）以 \( 1, \omega \) 为基，其中 \( \omega = \frac{1}{2}(-1 + i\sqrt{3}) \) 是本原三次单位根，它们也构成欧几里得整环，其赋值（范数）为 \( v(a + b\omega) = a^2 - ab + b^2 \)。它们的格是三角形而非正方形，并且有六个单位——即单位圆上间隔60度的六个六次单位根——而 \( \mathbb{Z}[i] \) 只有四个单位。<sup>[11](https://math.clarku.edu/~djoyce/ma225/algebra.pdf)</sup> 这两个环在应用中常一同出现：用于计算转发通信方案的格码通常建立在整数、高斯整数或艾森斯坦整数之上，而这三者都是主理想整环。<sup>[12](https://arxiv.org/abs/1501.07740)</sup>

并非所有类似的环都表现良好。在 \( \mathbb{Z}[\sqrt{-5}] \) 中，唯一分解失效；该环是整环而非唯一分解整环的标准例子。<sup>[1](https://faculty.etsu.edu/gardnerr/4127/notes/IX-47.pdf)</sup> 在环族 \( \mathbb{Z}[\sqrt{-n}] \) 中，范数 \( N(a + b\sqrt{-n}) = a^2 + nb^2 \) 对 \( n = 2 \) 是欧几里得函数，但对任何 \( n \ge 3 \) 都不是。<sup>[3](https://www.maths.dur.ac.uk/users/jack.g.shotton/Teaching/number-theory/notes.html)</sup>

## 概率与应用

由于 \( \mathbb{Z}[i] \) 是平面上的一个格，关于其元素的概率问题有几何的答案。随机选取两个高斯整数，它们互素的概率等于 \( 1/\zeta_{\mathbb{Q}(i)}(2) \)，其中 \( \zeta_{\mathbb{Q}(i)} \) 是域 \( \mathbb{Q}(i) \) 的戴德金zeta函数；数值上为 \( 6/(\pi^2 K) \approx 0.66370 \)，其中 \( K \) 为卡塔兰常数。<sup>[5](https://mathworld.wolfram.com/GaussianInteger.html)</sup><sup> • </sup><sup>[13](https://arxiv.org/abs/1305.5502)</sup> 作为比较，普通整数的相应概率为 \( 6/\pi^2 \approx 0.6079 \)，因此高斯整数对互素的可能性略高一些。<sup>[5](https://mathworld.wolfram.com/GaussianInteger.html)</sup>

该环的唯一分解性质使其成为数论证明中的实用工具。费马两平方和定理有一个通过高斯整数的形式化证明，该环还支持乘性数论：对高斯整数的任意有限着色，都存在同色的不同非零元素 \( x \) 和 \( y \)，使得对某个高斯整数 \( n \) 有 \( x^2 - y^2 = n^2 \)。<sup>[14](https://github.com/thery/twoSquare)</sup><sup> • </sup><sup>[15](https://arxiv.org/abs/1405.0241)</sup> 在工程中，\( \mathbb{Z}[i] \) 的欧几里得结构是格算法的基础，这些算法用于多输入多输出（MIMO）传输和整数迫零均衡。<sup>[16](https://arxiv.org/abs/2208.08796)</sup>

## References

1. [IX.47. Gaussian Integers and Multiplicative Norms, ETSU lecture notes (Fraleigh, *A First Course in Abstract Algebra*)](https://faculty.etsu.edu/gardnerr/4127/notes/IX-47.pdf)
2. [Analytic Number Theory, Clay Mathematics Institute Proceedings (chapter on Gauss and higher reciprocity)](https://www.claymath.org/wp-content/uploads/2022/03/cmip07c.pdf)
3. [Number Theory III: Notes, J. Shotton, Durham University](https://www.maths.dur.ac.uk/users/jack.g.shotton/Teaching/number-theory/notes.html)
4. [F. Beukers, Elementary Number Theory, Section 13.3, Utrecht University](https://webspace.science.uu.nl/~beuke106/getaltheorie/getalscript.pdf)
5. [Gaussian Integer, Wolfram MathWorld](https://mathworld.wolfram.com/GaussianInteger.html)
6. [1.13: The Gaussian Integers, Elementary Number Theory (Barrus and Clark), Mathematics LibreTexts](https://math.libretexts.org/Bookshelves/Combinatorics_and_Discrete_Mathematics/Elementary_Number_Theory_%28Barrus_and_Clark%29/01%3A_Chapters/1.13%3A_The_Gaussian_Integers)
7. [Gaussian Prime, Wolfram MathWorld](https://mathworld.wolfram.com/GaussianPrime.html)
8. [Representing Integers as the Sum of Two Squares in the Ring Z_n, arXiv:1404.0187](https://arxiv.org/abs/1404.0187)
9. [Gauss, Theoria residuorum biquadraticorum, Commentatio prima-secunda, first edition description, Sophia Rare Books](https://www.sophiararebooks.com/pages/books/6172/carl-friedrich-gauss/theoria-residuorum-biquadraticorum-commentatio-prima-secunda)
10. [University of the Witwatersrand thesis on the Gaussian integers and biquadratic reciprocity](https://wiredspace.wits.ac.za/server/api/core/bitstreams/a80b572b-7cc4-4d66-aedf-52c65ca9c433/content)
11. [D. Joyce, Introduction to Modern Algebra, Chapter 3: Rings, Clark University](https://math.clarku.edu/~djoyce/ma225/algebra.pdf)
12. [Adaptive Compute-and-Forward with Lattice Codes Over Algebraic Integers, arXiv:1501.07740](https://arxiv.org/abs/1501.07740)
13. [On the Probability of Relative Primality in the Gaussian Integers, arXiv:1305.5502](https://arxiv.org/abs/1305.5502)
14. [A proof of Fermat's theorem on sums of two squares using Gaussian integers (Coq/mathcomp), GitHub repository thery/twoSquare](https://github.com/thery/twoSquare)
15. [A structure theorem for multiplicative functions over the Gaussian integers and applications, arXiv:1405.0241](https://arxiv.org/abs/1405.0241)
16. [Algorithms and Bounds for Complex and Quaternionic Lattices With Application to MIMO Transmission, arXiv:2208.08796](https://arxiv.org/abs/2208.08796)

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

Topic: 物质世界与数学 › 数学与统计学 › 数与代数 › Number theory › Algebraic number theory › Number fields and algebraic integers

Copyright 2026 Edgepedia

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

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

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