 is the
 is the  th convergent of
th convergent of 
![$ [a_0,a_1,\ldots,a_n]$](img1561.png) and
 and  , show that
, show that
![$\displaystyle [a_n,a_{n-1},\ldots, a_1, a_0] = \frac{p_n}{p_{n-1}}
$](img2024.png) 
and
![$\displaystyle [a_n,a_{n-1},\ldots, a_2, a_1] = \frac{q_n}{q_{n-1}}.
$](img2025.png) 
(Hint: In the first case, notice that
 )
)
 can be represented by
 can be represented by ![$ [1,1]$](img2027.png) and
 and ![$ [2]$](img2028.png) , and
, and  by
by ![$ [0,3]$](img2030.png) and
 and ![$ [0,2,1]$](img2031.png) .)
.)
![$ [2,\overline{1,2,1}]$](img2032.png) .
.
 .
.
 and
 and 
 and
 and  be positive
real numbers.  Prove that
 be positive
real numbers.  Prove that 
![$\displaystyle [a_0,a_1,\ldots,a_n+b] < [a_0,a_1,\ldots,a_n]
$](img2036.png) 
if and only if
 is odd.
 is odd.
 is
 is
![$\displaystyle [1, (k-1), 1, 1, (3k-1), 1, 1, (5k-1), 1, 1, (7k-1),\ldots]
$](img2038.png) 
for all
 .
.
 ,
,  ,
,  , and
, and  for the above continued fraction. Your answers should be in terms of
 for the above continued fraction. Your answers should be in terms of  .
.
 in terms of
 in terms of  and
 and  whose coefficients are polynomials in
 whose coefficients are polynomials in  and
 and  .
.
 
 , and verify that it equals
, and verify that it equals 
 .
.
 , and verify that it equals
, and verify that it equals 
 .
.
 by parts twice in succession, as in 
Section 5.3, and verify that
 by parts twice in succession, as in 
Section 5.3, and verify that  ,
, 
 , and
, and 
 satisfy the recurrence produced in part 6b, for
 satisfy the recurrence produced in part 6b, for  .
.
![$\displaystyle [1, (k-1), 1, 1, (3k-1), 1, 1, (5k-1), 1, 1, (7k-1),\ldots]
$](img2038.png) 
represents
 .
.
 be an integer that is coprime to
 be an integer that is coprime to  .
Prove that the decimal expansion of
.
Prove that the decimal expansion of 
 has period
equal to the order of
 has period
equal to the order of  modulo
 modulo  .
(Hint: For every positive integer
.
(Hint: For every positive integer  ,  we have
,  we have
 )
)
 is the sum of two
  two rational squares it is also the sum of two integer squares.
 is the sum of two
  two rational squares it is also the sum of two integer squares.
 be an odd prime.  Show that
 be an odd prime.  Show that 
 if and only if
 if and only if  can be written as
 can be written as 
 for
  some choice of integers
 for
  some choice of integers  and
 and  .
.
William 2007-06-01