Re: HSC 2015 4U Marathon
We will prove existence and uniqueness separately.
Existence we do inductively.
It is trivial for n=1.
Now suppose that there exist positive integers
![](https://latex.codecogs.com/png.latex?\bg_white p_n,q_n)
such that
Then
The coefficients clearly being positive integers.
Uniqueness follows from the fact that we cannot write the same real number in more than one way in this form.
For if we have
![](https://latex.codecogs.com/png.latex?\bg_white a+b\sqrt{2}=c+d\sqrt{2})
and
![](https://latex.codecogs.com/png.latex?\bg_white b\neq d)
(if b=d then we can subtract the surdic terms and also get a=b), then
![](https://latex.codecogs.com/png.latex?\bg_white \sqrt{2}=\frac{a-c}{d-b})
, which contradicts the well-known fact that
![](https://latex.codecogs.com/png.latex?\bg_white \sqrt{2})
is irrational. (I can prove this if you like, but I think most people have seen it before.)
Proving that
![](https://latex.codecogs.com/png.latex?\bg_white p_n^2-2q_n^2=(-1)^n)
is done inductively, as
An interesting extension question (more suitable for the advanced thread) is to show that:
a) There are always positive integer solutions to the equation
![](https://latex.codecogs.com/png.latex?\bg_white x^2-Dy^2=1)
if D is a nonsquare positive integer. (Hint: use the pigeonhole principle and consider the problem of approximating an irrational number well by a rational one.)
b) The solutions are precisely the pairs
![](https://latex.codecogs.com/png.latex?\bg_white (x_n,y_n))
where (
![](https://latex.codecogs.com/png.latex?\bg_white x_n+y_n\sqrt{D}=(x_1+y_1\sqrt{D})^n)
) and
![](https://latex.codecogs.com/png.latex?\bg_white (x_1,y_1))
is the solution pair with smallest
![](https://latex.codecogs.com/png.latex?\bg_white x+y\sqrt{D}.)
(Hint: again consider multiplying numbers of the form
![](https://latex.codecogs.com/png.latex?\bg_white x+y\sqrt{D})
together.)
c) Find a closed form (non-recursive) expression for the solutions.
(If a is too hard, then just try b and c, as they are a bit easier I reckon.)