Proof. Put
. Then
The algorithm of section 7.4 shows that
so
For a more formal proof, put
. Then
. If
, then
The unicity of the expansion gives
, so
This gives
and
Moreover
Put
. Then
If
, then
The unicity of the expansion gives
and
for all
. Therefore
so
and
Verification:
sage: continued_fraction(1/sqrt(3))
[0; 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, ...]
□