# 丢番图方程

丢番图方程是系数为有理数的多项式方程，其中所关注的解限于整数或有理数，而不是任意的实数或复数值。<sup>[1](https://www.uni-ulm.de/en/mawi/institute-of-pure-mathematics/teaching/wintersemester-201718/diophantine-equations/)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | 系数为有理数、寻求其有理解或整数解的多项式方程<sup>[1](https://www.uni-ulm.de/en/mawi/institute-of-pure-mathematics/teaching/wintersemester-201718/diophantine-equations/)</sup> |
| 线性情形 | \( ax + by = c \) 有整数解，当且仅当 \( \gcd(a,b) \) 整除 \( c \)<sup>[3](https://math.gordon.edu/ntic/ntic2017/section-lin-dioph.html)</sup> |
| 同余联系 | 解线性同余式 \( ax \equiv b \pmod{n} \) 等价于解丢番图方程 \( ax + ny = b \)<sup>[4](https://math.libretexts.org/Courses/Mount_Royal_University/Higher_Arithmetic/5%3A_Diophantine_Equations/5.2_%3A_Linear_Congruences_Revisted)</sup> |
| 著名例子 | 费马方程 \( x^{n} + y^{n} = z^{n} \)；费马（Fermat）于1637年声称当 \( n > 2 \) 时它没有非零整数解，安德鲁·怀尔斯（Andrew Wiles）于1994年证明<sup>[1](https://www.uni-ulm.de/en/mawi/institute-of-pure-mathematics/teaching/wintersemester-201718/diophantine-equations/)</sup> |
| 可判定性 | 希尔伯特（Hilbert）第十问题要求给出一个算法，以判定一个丢番图方程是否有整数解；尤里·马季亚谢维奇（Yuri Matiyasevich）于1970年给出了否定解答<sup>[5](https://mitpress.mit.edu/9780262132954/hilberts-10th-problem/)</sup> |

## 线性情形

最简单的丢番图方程是二元线性方程 \( ax + by = c \)，其中 \( a, b, c \) 为整数，且 \( a, b \) 不同时为零。完整的可解性判据是初等的：解存在，当且仅当 \( d = \gcd(a,b) \) 整除 \( c \)。<sup>[3](https://math.gordon.edu/ntic/ntic2017/section-lin-dioph.html)</sup> 当已知一个特解 \( (x_0, y_0) \) 时，所有其他解都可由它加上约化系数的倍数得到；这种结构可通过运行扩展欧几里得算法、将 \( \gcd(a,b) \) 表示为 \( ax + by \) 的形式而得到。<sup>[6](https://www.youtube.com/watch?v=FjliV5u2IVw)</sup>

这一理论与线性同余理论相同。同余式 \( ax \equiv b \pmod{n} \) 有解，当且仅当 \( d = \gcd(a,n) \) 整除 \( b \)，因为该同余式的解无非就是解 \( ax + ny = b \) 的整数对。当解存在时，模 \( n \) 恰有 \( d \) 个解，彼此相隔 \( n/d \)。<sup>[4](https://math.libretexts.org/Courses/Mount_Royal_University/Higher_Arithmetic/5%3A_Diophantine_Equations/5.2_%3A_Linear_Congruences_Revisted)</sup><sup> • </sup><sup>[7](https://math.gordon.edu/ntic/ntic2017/section-solve-lin-cong.html)</sup> 单个线性方程的一般整数解可推广到 \( n \) 元方程以及线性丢番图方程组。<sup>[8](https://arxiv.org/abs/math/0010134)</sup>

## 历史

这门学科得名于亚历山大的丢番图（Diophantus of Alexandria），据信他生活在三世纪，其《算术》（Arithmetica）讨论代数方程的求解以及关于平方数、立方数和直角三角形的问题。<sup>[2](https://mathshistory.st-andrews.ac.uk/Biographies/Diophantus/)</sup><sup> • </sup><sup>[9](https://jimclifford.ca/britannica-articles-2/a/EB.10/191678897/1083.html)</sup> 众所周知，费马曾研读丢番图的文本，并于1637年在书页边写下他的断言：当 \( n > 2 \) 时，\( x^{n} + y^{n} = z^{n} \) 没有满足 \( xyz \neq 0 \) 的整数解。这一陈述即费马大定理，在三百多年间一直未获证明，直到安德鲁·怀尔斯于1994年将其解决。<sup>[1](https://www.uni-ulm.de/en/mawi/institute-of-pure-mathematics/teaching/wintersemester-201718/diophantine-equations/)</sup>

独立于希腊传统，印度数学家很早就发展了线性理论。阿耶波多（Aryabhata）公元499年的著作包含 \( ay + bx = c \) 的第一个明确的一般整数解，后来的注释者对此方法作了阐发。<sup>[10](https://www.sciencedirect.com/topics/mathematics/aryabhata)</sup> 婆罗摩笈多（Brahmagupta）是乌贾因（Ujjain）天文台的负责人，他于公元628年给出了求解形如 \( ax + c = by \) 的不定方程的方法，并通过其关于佩尔型方程（Pell-type equations）的复合引理，说明佩尔方程的一个解如何生成许多其他解。<sup>[11](https://mathshistory.st-andrews.ac.uk/Biographies/Brahmagupta/)</sup><sup> • </sup><sup>[12](https://mathshistory.st-andrews.ac.uk/HistTopics/Pell/)</sup>

## 二次方程与佩尔方程

丢番图考察了与佩尔方程相关的问题，而阿基米德（Archimedes）的牛群问题可归结为佩尔方程，尽管没有证据表明阿基米德本人作出了这一联系。<sup>[12](https://mathshistory.st-andrews.ac.uk/HistTopics/Pell/)</sup>

## 椭圆曲线与更高次数

到了三次，容易的分类便告结束。该主题的一门标准研究生课程从佩尔方程和三元二次型出发，经过 \( p \) 进数与丢番图逼近，最后以椭圆曲线和莫德尔定理（Mordell's theorem）关于其有理点的结论收尾。<sup>[1](https://www.uni-ulm.de/en/mawi/institute-of-pure-mathematics/teaching/wintersemester-201718/diophantine-equations/)</sup> 哈佛大学（Harvard University）的诺姆·埃尔基斯（Noam Elkies）和马克·沃特金斯（Mark Watkins）已将 \( \mathbb{Q} \) 上给定秩至多为11、具有最小导子或判别式的椭圆曲线记录制成表格。<sup>[14](https://abel.math.harvard.edu/~elkies/compnt.html)</sup>

现代丢番图逼近为广泛方程类的解的大小提供上界，所用工具包括代数数的对数线性形式和超几何方法；这些上界与计算相结合，使得确定给定方程的全部解成为可能。<sup>[15](https://web.math.pmf.unizg.hr/~duje/diophantine.html)</sup><sup> • </sup><sup>[16](https://ntrg.math.unideb.hu/research.html)</sup> 一个被提出的研究纲领按照一种定义的大小概念对全部多项式丢番图方程排序，并从最小者开始按此顺序求解。<sup>[17](https://arxiv.org/abs/2108.08705)</sup>

## 不可判定性

1900年，希尔伯特要求给出一种方法——用现代的话说是一种算法——来判定任意丢番图方程是否有整数解。圣彼得堡（Saint Petersburg）斯捷克洛夫数学研究所（Steklov Institute of Mathematics）数理逻辑实验室主任尤里·马季亚谢维奇于1970年否定地解决了这一问题：不存在这样的算法。<sup>[5](https://mitpress.mit.edu/9780262132954/hilberts-10th-problem/)</sup> 这一否定解答被列为二十世纪伟大的数学成果之一。<sup>[5](https://mitpress.mit.edu/9780262132954/hilberts-10th-problem/)</sup> 不可判定性在更丰富的系数环上依然存在：马季亚谢维奇与孙智伟（Zhi-Wei Sun）证明，不存在算法判定整系数多项式方程 \( P(z_1, \ldots, z_{20}) = 0 \) 是否在高斯整数（Gaussian integers） \( \mathbb{Z}[i] \) 上可解，且20个未知数已足够。<sup>[18](https://arxiv.org/abs/2510.18794)</sup>

## 应用

线性丢番图方程以及建立在其上的同余理论，与扩展欧几里得算法、模逆元和中国剩余定理（Chinese Remainder Theorem）一道，是公钥密码学的基础。<sup>[19](https://amupie.amu.edu.pl/304/details)</sup> 高次丢番图方程也被直接提议作为密码学原语：一种密钥交换方案使用由高阶丢番图方程构造的单向函数作为公钥，并带有一个陷门，使接收方能够恢复秘密。<sup>[20](https://arxiv.org/abs/1103.3742)</sup> 线性丢番图方程组可在多项式时间内求解，已被用于图同构问题的若干方法中。<sup>[21](https://arxiv.org/abs/1607.04287)</sup>

## References

1. [Diophantine Equations, Universität Ulm lecture description](https://www.uni-ulm.de/en/mawi/institute-of-pure-mathematics/teaching/wintersemester-201718/diophantine-equations/)
2. [Diophantus (200–284), MacTutor History of Mathematics](https://mathshistory.st-andrews.ac.uk/Biographies/Diophantus/)
3. [NTIC: Linear Diophantine Equations, Gordon College](https://math.gordon.edu/ntic/ntic2017/section-lin-dioph.html)
4. [Linear Congruences Revisited, Mathematics LibreTexts](https://math.libretexts.org/Courses/Mount_Royal_University/Higher_Arithmetic/5%3A_Diophantine_Equations/5.2_%3A_Linear_Congruences_Revisted)
5. [Hilbert's Tenth Problem, MIT Press](https://mitpress.mit.edu/9780262132954/hilberts-10th-problem/)
6. [Diophantine Equation: ax+by=gcd(a,b), Socratica video](https://www.youtube.com/watch?v=FjliV5u2IVw)
7. [NTIC: Solving Linear Congruences, Gordon College](https://math.gordon.edu/ntic/ntic2017/section-solve-lin-cong.html)
8. [Integer Algorithms to Solve Diophantine Linear Equations and Systems, arXiv](https://arxiv.org/abs/math/0010134)
9. [Diophantine Problems, Encyclopædia Britannica 5th ed. (1815)](https://jimclifford.ca/britannica-articles-2/a/EB.10/191678897/1083.html)
10. [Aryabhata, ScienceDirect Topics overview](https://www.sciencedirect.com/topics/mathematics/aryabhata)
11. [Brahmagupta (598–670), MacTutor History of Mathematics](https://mathshistory.st-andrews.ac.uk/Biographies/Brahmagupta/)
12. [Pell's Equation, MacTutor History of Mathematics](https://mathshistory.st-andrews.ac.uk/HistTopics/Pell/)
13. [Number Theory and Cryptography, NYU course notes](https://math.nyu.edu/~hausner/division.pdf)
14. [Algorithmic Number Theory: Tables and Links, Noam Elkies, Harvard University](https://abel.math.harvard.edu/~elkies/compnt.html)
15. [Diophantine equations research page, University of Zagreb](https://web.math.pmf.unizg.hr/~duje/diophantine.html)
16. [Number Theory Research Group, University of Debrecen](https://ntrg.math.unideb.hu/research.html)
17. [Diophantine equations: a systematic approach, arXiv](https://arxiv.org/abs/2108.08705)
18. [Undecidability on Diophantine equations over Z[i] with 20 unknowns, Matiyasevich and Sun, arXiv](https://arxiv.org/abs/2510.18794)
19. [Introduction to Number Theory, AMU-PIE Platform](https://amupie.amu.edu.pl/304/details)
20. [The key exchange cryptosystem used with higher order Diophantine equations, arXiv](https://arxiv.org/abs/1103.3742)
21. [Linear Diophantine Equations, Group CSPs, and Graph Isomorphism, arXiv](https://arxiv.org/abs/1607.04287)

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

Topic: 物质世界与数学 › 数学与统计学 › 数与代数 › Number theory › Diophantine problems and approximation › Linear and additive Diophantine equations

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/diophantine-equation

English original: https://www.edgepedia.org/diophantine-equation
