OFFSET
1,1
EXAMPLE
The continued fraction for the square root of 39 is 6, {4, 12}.
MATHEMATICA
Select[ Range[1000], First[ Last[ ContinuedFraction[ Sqrt[ # ]]]] == 4 & ]
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Robert G. Wilson v, Nov 01 2001
STATUS
approved