Fermat’s theorem on sums of two squares: History

Fermat 的平方和定理: 素数 \(p\equiv1\pmod4\),则 \(p\) 能表成两个整数 \( a, b\) 的平方和 \(p=a^2+b^2\). 是很精彩的定理,在堆垒数论很经典,我们很感兴趣。今天先来谈一点关于它的历史。 在历史上,最早考虑把正整数(不仅仅是素数)表示成两个正整数的平方和的可能性的问题的数学家是 Albert Girard. 他的论文发表在 1625 年。前面刚刚提到的Fermat 平方和定理有时候也称为 Girard 定理。至于 Fermat, 他在1640年12月25日给 Marin Mersenne 的一封信对这个定理给出了一个详尽的描述,同时也定出了把 \(p\) 的幂表成两个整数的平方和有多少种方法。 Albert Girard 小传 …

Fermat’s theorem on sums of two squares: History Read More

Euclidean algorithm and Fermat’s theorem on sums of two squares

Euclidean algorithm, 也就是常说的辗转相除法, 通过有限步骤来找出两个整数 \(a,b\) 的最大公约数 \((a,b)\). 具体说来, \(a,b\in\Bbb Z\), 我们假定 \(b>0\), 并记 \(r_0=a, r_1=b\). 据带余除法, 可有 \[r_0=q_1r_1+r_2,\quad 0<r_2<r_1, q_1=\left[\frac{r_0}{r_1}\right];\] \[r_1=q_2r_2+r_3,\quad 0<r_3<r_2, q_2=\left[\frac{r_1}{r_2}\right];\] \[\cdots  \cdots  \cdots  \cdots  \cdots  \cdots \cdots \cdots\] \[r_{n-1}=q_nr_n,\quad q_n=\left[\frac{r_{n-1}}{r_n}\right].\] \(\left[x\right]\) …

Euclidean algorithm and Fermat’s theorem on sums of two squares Read More

Hilbert symbol and Fermat’s theorem on sums of two squares

这里将在有理数域 \(\Bbb Q\) 中来考察 Fermat 的平方和, 慢慢走向椭圆曲线(elliptic curve). 首先指出, \(n\in\Bbb N\) 是否两个有理数的平方和, 与其是否两个整数的平方和, 是一码事. 定理  设 \(n\in\Bbb N\), 则下面两件事情等价: 存在 \(x,y\in\Bbb Q,\) 使得 \(n=x^2+y^2\); 存在 \(x,y\in\Bbb N,\) 使得 \(n=x^2+y^2\). 只要说明 \(1\Rightarrow2\) …

Hilbert symbol and Fermat’s theorem on sums of two squares Read More

Gauss’s construction on Fermat’s sums of two squares

质数 \(p=4n+1\), 那么存在 \( a,b\in\Bbb Z,\) 并且 \begin{equation}a\equiv\frac12{2n\choose n}\pmod p,\end{equation} 使得 \( p=a^2+b^2.\) 这是 Gauss 在 \(1825\) 年的一个结果, 已经指出了适合 Fermat 平方和定理的唯一一对 \(a,b\): 由 \begin{equation}a\equiv\frac12{2n\choose n}\pmod p,\quad a<\frac{|p|}2\end{equation} 可决定唯一的一个 \(a,\) 然后 \begin{equation}b\equiv …

Gauss’s construction on Fermat’s sums of two squares Read More

Fixed point and Fermat’s theorem on sums of two squares

Zagier 的一句话证明(1990) 有限集 \(S=\{(x,y,z)\in\Bbb N^3|x^2+4yz=p\}\) 上的对合(Involution) \[f:S\rightarrow S,\quad (x,y,z)\mapsto\begin{cases}(x+2z,z,y-x-z)\quad x<y-z;\\(2y-x,y,x-y+z)\quad y-z<x<2y;\\(x-2y,x-y+z,y)\quad 2y<x,\end{cases}\] 恰有一个不动点 \((1,1,\frac{p-1}4)\), 这意味着 \(|S|\) 为奇数, 从而 \(S\) 的另一个对合 \[g:S\rightarrow S,\quad(x,y,z)\mapsto(x,z,y)\] 必有不动点 \((x,y,z)\), 它满足 \(y=z\), 进而 \[p=x^2+4y^2=x^2+(2y)^2.   \Box\]

Fixed point and Fermat’s theorem on sums of two squares Read More

Minkowski’s theorem and Fermat’s theorem on sums of two squares

奇质数 \(p\) 能表成两个正整数的平方和, 当且仅当 \(p\equiv1\pmod4.\) Fermat 的这个平方和定理, 非常简洁, 相当漂亮! 这是我见过最多证明的定理, 比质数无限性的证明都多! 先看一看以 Minkowski定理(Minkowski’s theorem)为工具, 来给出Fermat定理的证明. 这个证明, 是 \(20\) 世纪才发现的. 我们从 Minkowski 的一个结果开始, 尽管看起来似乎和Fermat的平方和定理没有关系. 定理(Minkowski)  \(a,b,c\in\Bbb Z, a>0,ac-b^2=1,\) 那么方程 \(ax^2+2bxy+cy^2=1\) 有整数解. 证   这定理其实仅是华罗庚的数论导引定理\(20.1.4\) …

Minkowski’s theorem and Fermat’s theorem on sums of two squares Read More

Sums of two squares

二平方和 引理 \(1\)正整数 \(a, b\) 互质, \((a,b)=1, p>2\) 是质数,并且 \(p\bigm|(a^2+b^2)\), 则 \(p\equiv1\pmod4\). 证明  不难用二次剩余(Quadratic residue)来给出证明: 由 \(p\bigm|(a^2+b^2)\) 得 \begin{equation}a^2\equiv-b^2\pmod p,\end{equation} 故而 \begin{equation}(\frac{a^2}{p})= (\frac{-1}{p})(\frac{b^2}{p}).\end{equation} 这里 \((\frac{n}{p})\) 是 Legendre symbol. 由于  \((a,b)=1\), 因之 \((p,a)=(p,b)=1\), 于是 \begin{equation}(\frac{a^2}{p})=(\frac{b^2}{p})=1\end{equation} 成为事实, …

Sums of two squares Read More