OFFSET
1,1
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..252
EXAMPLE
a(1) = 5 because the cf of (-1+sqrt(5))/2 is {0, {1}}, that part in the second parenthesis is reoccurring,
a(2) = 3 because the cf of -1 + Sqrt(3) is {0, {1, 2}},
a(3) = 37 because the cf of (-4+Sqrt(37))/3 is {0, {1, 2, 3}}, etc.
MATHEMATICA
f[n_] := (FromContinuedFraction[{0, Range@ n}][[-1, -1]])^2; Array[ f, 16]
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert G. Wilson v, Mar 07 2011
STATUS
approved