Homepage › Solution manuals › Ivan Niven › An Introduction to the Theory of Numbers › Exercise 3.7.3 (Number of proper representations of $n$ by $x^2 + xy + y^2$)
Exercise 3.7.3 (Number of proper representations of $n$ by $x^2 + xy + y^2$)
Show that any positive definite binary quadratic form of discriminant is equivalent to . Show that a positive integer is properly represented by if and only if is of the form , where or and all the primes are of the form . Show that for of this form, , where is the number of distinct primes that divide .
Answers
Proof.
- (a)
- First we search the reduced forms of discriminant . By Theorem 3.19, , thus . Since , is odd, and , so we obtain , and . This shows that the only reduced form of discriminant is , which is primitive. Therefore any form with discriminant is properly equivalent to (Theorem 3.18), and .
- (b)
-
Let
be any positive integer. By Theorems 3.13 and 3.17,
is properly represented by
if and only if
for some integer
.
Since is not a square modulo , is odd, so the decomposition of in prime factors is of the form , where the primes are odd. Note that , but is not a square modulo (the squares modulo are ). If , then . This is a contradiction, so or .
If is an odd prime divisor of , then , thus . Moreover, by the Law of Quadratic Reciprocity,
Therefore , thus . We have proven that if a positive integer is properly represented by , then , where or , and all the primes are of the form .
Conversely, suppose that , where or , and all the primes are of the form .
For every , , thus there is some integer such that . Put . Then has a solution , such that . By the Hensel’s Lemma (Theorem 2.23), this solution lifts to a unique solution modulo , so that . Moreover, since is a square modulo , the congruence has a solution . By the Chinese Remainder Theorem, there is some integer such that . Then , so , and , thus . This proves that is properly represented by .
A positive integer is properly represented by if and only if is of the form , where or , and all the primes are of the form .
- (c)
-
Suppose now that
is of this form, so that
. By Theorem 3.26, since
,
, and by Theorem 3.27,
Here is the number of integers , such that (the condition is always satisfied by part (a), since the discriminant of is ). Thus , where denotes the number of integers for which and (see p. 175).
Since is a solution of the congruence if and only if is a solution, it follows that is precisely one-half the total number of solutions of the congruence . To summarize:
As in Theorem 2.20, put , so is the number of solutions of the congruence , and
By Theorem 2.20,
If , , so , thus , and by Hensel’s Lemma, . Moreover is the number of solutions of , thus . The number of solutions of is . Then
If is the number of distinct primes that divide , then equations (1), (2) and (3) give