Math 124 Problem Set 6
1. -389 is negative, and thus not the sum of two squares.
Since , it is not the sum of two squares. Since
, it is not the sum of two squares.
is a
perfect square. Since
, it is not the sum of two
squares. Finally,
and
, so it
is not the sum of two squares.
2i. On input , the program breaks up
into two
parts and looks for a sum of two squares representation.
{squares(n) = local(y); for(x=1,floor(sqrt(n)),
y=sqrt(n-);
if(y-floor(y)==0, return([x,floor(y)]))
);
return(0) }
f(n) =
for(x=1,n,
a=squares(x);
b=squares(n-x);
if(a!=0 && b!=0, return([a,b])));}
2ii.
.
3. 625 There are two Pythagorean triples with
25 as the hypotenuse: and
. This gives
two representations of 625 as the sum of two squares. Of course,
is a third.
4. The forward direction is trivial. For the opposite
direction, suppose that is the sum of two rational squares:
, but it is not the sum of two
integer squares. Then
, where
is a
prime factor and
is odd. Now,
, so
is the sum of two integer squares. However, all the
prime factors of
have even exponent, so
,
where
is still odd. This is a contradiction; therefore
must be the sum of two integer squares.
5. Suppose
, where
is an odd prime and
are integers. Then
, so
(since
is a field). From
Lecture 13,
iff
. Also,
iff
. Since
, we have
iff
.
Conversely, suppose
is
prime. Let
be such that
. Taking
and applying Lemma 1.3 from Lecture
21, there exist integers
with
such that
9. The discriminants are equal:
. However, the forms are not
equivalent. To see this, we first show that
is equivalent to
. As above, this means solving