Section 14.3 Related Questions About Sums
There is yet another generalization that will serve better as a lead-in to the next chapters. Think about the following two problems.What numbers can be written as x2+2y2? (Think of it as x2+y2+y2.)
What numbers can be written as x2+3y2?
Fact 14.3.1.
No number
nβ‘5 or nβ‘7 (mod 8)
can be written as x2+2y2.
Proof.
Try all numbers modulo 8 and see what is possible! (See Exercise 14.4.3.)
x2+2y2=(xββ2iy)(x+β2iy)
you could start proving such things. When might a square root of two exist modulo p β¦
Here are some numbers which can be written in this form.
xxxxxxxxxx
1
@interact
2
def _(n=10):
3
pretty_print(html("Using $a$ and $b$ up to $%s$:"%n))
4
L=[a^2+2*b^2 for a in [0..n] for b in [0..n]]
5
L.sort(); print(L)
Messages