The main goal of today's lecture is to prove the following theorem.
Theorem 1.1 A number
is a sum of two squares if and only if all prime factors of
of the form
have even exponent in the prime factorization of
.
Before tackling a proof, we consider a few examples.
Example 1.2
-
<!-- MATH
$5 = 1^2 + 2^2$
-->.
-
is not a sum of two squares.
-
is divisible by because is, but not by since is not, so is not a sum of two squares.
-
<!-- MATH
$2\cdot 3^4\cdot 5\cdot 7^2\cdot 13$
--> is a sum of two squares.
-
is a sum of two squares, since <!-- MATH
$389\equiv 1\pmod{4}$
--> and is prime.
-
<!-- MATH
$21=3\cdot 7$
--> is not a sum of two squares even though <!-- MATH
$21\equiv 1\pmod{4}$
-->.
In preparation for the proof of Theorem1.1, we recall a result that emerged when we analyzed how partial convergents of a continued fraction converge.
Lemma 1.3 If <!-- MATH
$x\in\mathbb{R}$
-->
and <!-- MATH
$n\in\mathbb{N}$
-->
, then there is a fraction <!-- MATH
$\displaystyle \frac{a}{b}$
-->
in lowest terms such that
and <!-- MATH
\begin{displaymath}
\left| x - \frac{a}{b} \right| \leq \frac{1}{b(n+1)}.
\end{displaymath}
-->
Proof. Let <!-- MATH
$[a_0,a_1,\ldots]$
-->
be the continued fraction expansion of
. As we saw in the proof of Theorem2.3 in Lecture18, for each
<!-- MATH
\begin{displaymath}
\left| x - \frac{p_m}{q_m}\right|
< \frac{1}{q_m \cdot q_{m+1}}.
\end{displaymath}
-->
Since
is always at least
bigger than
and
, either there exists an
such that <!-- MATH
$q_m\leq n < q_{m+1}$
-->
, or the continued fraction expansion of
is finite and
is larger than the denominator of the rational number
. In the first case, <!-- MATH
\begin{displaymath}
\left| x - \frac{p_m}{q_m}\right|
< \frac{1}{q_m \cdot q_{m+1}}
\leq \frac{1}{q_m \cdot (n+1)},
\end{displaymath}
-->
so <!-- MATH
$\displaystyle \frac{a}{b} = \frac{p_m}{q_m}$
-->
satisfies the conclusion of the lemma. In the second case, just let <!-- MATH
$\displaystyle \frac{a}{b} = x$
-->
.
Definition 1.4 A representation <!-- MATH
$n=x^2 + y^2$
-->
is
primitive if <!-- MATH
$\gcd(x,y)=1$
-->
.
Lemma 1.5 If
is divisible by a prime
of the form
, then
has no primitive representations.
Proof. If
has a primitive representation, <!-- MATH
$n=x^2 + y^2$
-->
, then <!-- MATH
\begin{displaymath}
p \mid x^2 + y^2\quad \text{ and }\quad \gcd(x,y)=1,
\end{displaymath}
-->
and
so
and
. Thus <!-- MATH
$x^2 + y^2 \equiv 0\pmod{p}$
-->
so, since <!-- MATH
$\mathbb{Z}/p\mathbb{Z}$
-->
is a field we can divide by
and see that <!-- MATH
\begin{displaymath}
(x/y)^2 \equiv -1\pmod{p}.
\end{displaymath}
-->
Thus the quadratic residue symbol <!-- MATH
$\left(\frac{-1}{p}\right)$
-->
equals
. However, <!-- MATH
\begin{displaymath}
\left(\frac{-1}{p}\right) = (-1)^{\frac{p-1}{2}} = (-1)^\frac{4m+3-1}{2} = (-1)^{2m+1} = -1.
\end{displaymath}
-->
Proof. [Proof of Theorem
1.1] <!-- MATH
$\left(\Longrightarrow\right)$
-->
Suppose that
is of the form
, that <!-- MATH
$p^r\mid\mid n$
-->
(exactly divides) with
odd, and that
. Letting <!-- MATH
$d=\gcd(x,y)$
-->
, we have <!-- MATH
\begin{displaymath}
x = dx', \quad y = dy', \quad n = d^2 n'
\end{displaymath}
-->
with <!-- MATH
$\gcd(x',y')=1$
-->
and <!-- MATH
\begin{displaymath}
(x')^2 + (y')^2 = n'.
\end{displaymath}
-->
Because is odd, , so Lemma1.5 implies that <!-- MATH
$\gcd(x',y')>1$
-->, a contradiction.
<!-- MATH
$\left(\Longleftarrow\right)$
--> Write <!-- MATH
$n=n_1^2 n_2$
--> where has no prime factors of the form . It suffices to show that is a sum of two squares. Also note that <!-- MATH
\begin{displaymath}
(x_1^2 + y_1^2)(x_2^2+y_2^2) = (x_1x_2+y_1y_2)^2 + (x_1y_2-x_2y_1)^2,
\end{displaymath}
-->
so a product of two numbers that are sums of two squares is also a sum of two squares.
1Also, the prime
is a sum of two squares. It thus suffices to show that if
is a prime of the form
, then
is a sum of two squares.
Since <!-- MATH
\begin{displaymath}
(-1)^{\frac{p-1}{2}} = (-1)^{\frac{4m+1-1}{2}} = +1,
\end{displaymath}
-->
is a square modulo
; i.e., there exists
such that <!-- MATH
$r^2\equiv -1\pmod{p}$
-->
. Taking <!-- MATH
$n=\lfloor \sqrt{p}\rfloor$
-->
in Lemma
1.3 we see that there are integers
such that <!-- MATH
$0<b<\sqrt{p}$
-->
and <!-- MATH
\begin{displaymath}
\left| -\frac{r}{p} - \frac{a}{b}\right| \leq\frac{1}{b(n+1)} < \frac{1}{b\sqrt{p}}.
\end{displaymath}
-->
If we write <!-- MATH
\begin{displaymath}
c = rb + pa
\end{displaymath}
-->
then <!-- MATH
\begin{displaymath}
|c| < \frac{pb}{b\sqrt{p}} = \frac{p}{\sqrt{p}} = \sqrt{p}
\end{displaymath}
-->
and <!-- MATH
\begin{displaymath}
0 < b^2 + c^2 < 2p.
\end{displaymath}
-->
But <!-- MATH
$c \equiv rb\pmod{p}$
-->
, so <!-- MATH
\begin{displaymath}
b^2 + c^2 \equiv b^2 + r^2 b^2 \equiv b^2(1+r^2) \equiv 0\pmod{p}.
\end{displaymath}
-->
Thus <!-- MATH
$b^2 + c^2 = p$
-->
.
分享到:
相关推荐
In order to make our extensive series of lecture notes more readily ... The quality of the images varies depending on the quality of the originals. The images have not been converted to searchable text.
关于STLS问题条件数的几个结果,李冰玉,贾仲孝,基于STLS解的Golub-Van Loan 存在唯一性条件,L.Zhou等最近对STLS解进行了一阶扰动分析并显式刻画了STLS问题条件数的上界。本文采用不同的扰
What are the differences between least-squares and Kalman filtering
关于总体最小二乘问题的条件数,贾仲孝,李冰玉,本文研究了总体最小二乘问题条件数的计算公式和上下界。给定一个以 为数据的总体最小二乘问题,文中给出了两个简单的计算公式。�
Regrettably, some of the squares are infertile and can't be planted. Canny FJ knows that the cows dislike eating close to each other, so when choosing which squares to plant, he avoids choosing ...
The simple world program simulates a number of creatures running around in a simple square world The world is an m by n two dimensional grid of squares The number m represents the height of the grid ...
icp经典论文Least-Squares Fitting of Two 3-D Point Sets,基于SVD分解的icp算法
Matlab function that computes the total sum of squares matrix on given features
Least-squares estimation of transformation parameters between two point patterns。 相似变换相当于等距变换和均匀缩放的一个复合,即为: 左上角2*2矩阵为旋转部分,右上角为平移因子。它有四个自由度,即旋转...
整体最小二乘基本理论,介绍整体最小二乘基本原理,配合实例计算。
This book focuses on Least Squares Support Vector Machines (LS-SVMs) which are reformulations to standard SVMs. LS-SVMs are closely related to regularization networks and Gaussian processes but ...
SumOfSquares.jl:Julia的平方和编程
Partial Least Squares (PLS) Analysis was first developed in the late 60’s by Herman Wold, and works on the assumption that the focus of analysis is on which aspects of the signal in one matrix are ...
MLS算法论文,We provide an image deformation method based on Moving LeastSquares using various classes of linear functions including affine,similarity and rigid transformations. These deformationsare ...
Due to the continuing progress of sensor technology, the availability of 3-D cam- eras is already foreseeable. These cameras are capable of generating a ...which are employed in the Fraunhofer software.
a sequence of way points into a trajectory with explicit dependence on time which enables the control of the robot in real time. Due to its modular formulation the approach is easily extended to ...
Circle of Squares: A Simulation On the CD-ROM The Resources Page 15 Objects and Arrays A Refresher on Objects and Arrays Opcodes for Objects Opcodes for Arrays Three-Dimensional Array: A ...
A.2 The Sum of Two Vector Spaces 460 A.3 The Cartesian Product of Two Vector Spaces 461 A.4 The Tensor Product of Two Vector Spaces 461 A.5 The Kronecker Product AB of Two Matrices 462 B The Jordan ...
The third edition has three new chapters on unusual topics related to Kalman filtering and other filtering techniques based on the method of least squares.Chapter 17 presents a type of filter known as...
Leastsquares estimation of anisotropic similarity transformations from corresponding 2D point sets