Homepage › Solution manuals › Ivan Niven › An Introduction to the Theory of Numbers › Exercise 1.3.35* ($n = x^2 - y^2$)
Exercise 1.3.35* ($n = x^2 - y^2$)
Show that there exist non-negative integers and such that if and only if is odd or is a multiple of 4. Show that there is exactly one such representation of if and only if an odd prime, or four times a prime.
Answers
Proof. Let be a non negative integer.
(if we accept , then some other numbers as have also a unique representation.)
- (a)
-
Existence. Assume that
for some non negative integers
. For every integer
,
, so
, and
. Thus
is not of the form
. In other words,
is odd or is a multiple of
.
Conversely assume that is odd or is a multiple of .
-
If is odd, then
so that , where and are non negative integers.
-
If is a multiple of , then
so that , where and are non negative integers.
-
- (b)
-
Unicity. Assume that
an odd prime, or four times a prime. We know from part (a) that
for some non negative integers
. We will show that this representation is unique.
-
If , then
Since , and , we obtain , thus . Therefore and . This gives , so that the decomposition is unique.
-
If , then
As previously, , so , or . in the first case, is not an integer, thus : the decomposition is unique.
-
If is an odd prime,
where . Since is prime, , thus : the decomposition is unique.
-
If ( , where is prime), then
where . The divisors of are , and are of same parity, thus , so : the decomposition is unique.
-
If , where is an odd prime, then
where , and are of same parity. The divisors of are . Therefore, satisfy : the decomposition is unique.
Conversely, assume that is odd or is a multiple of , but , , and is not an odd prime, and is not four times a prime. We want to prove that has at least two distinct decompositions of the form .
Note has two decompositions. We suppose now .
Examine first the case where is odd. Since , and is not a prime, is of the form
where is an odd prime, and is odd. Then the equalities
give two distinct decompositions of : if , then , and is a prime: this is a contradiction.
Examine now the case where is a multiple of , where . By hypothesis, , and is not a prime, thus is composite, so . Then
give two distinct decompositions of : if , then , so : this is a contradiction.
-
To conclude: If is an integer,
There is no representation of of the form if is even but is not a multiple of .
There is exactly one representation if and only if an odd prime, or four times a prime.
There are several distinct representations if is odd or is a multiple of , but , , and is not an odd prime, and is not four times a prime. □