OFFSET
0,2
COMMENTS
a(n)/a(n-1) tends towards 1.27201964951... = sqrt((1+sqrt(5))/2). See A139339.
LINKS
Harry J. Smith, Table of n, a(n) for n = 0..500
EXAMPLE
a(7) = 8 since round(sqrt(5^2 + 6^2)) = round(sqrt(61)) = round(7.8102...) = 8.
MATHEMATICA
nxt[{a_, b_}]:={b, Round[Sqrt[a^2+b^2]]}; NestList[nxt, {1, 2}, 50][[;; , 1]] (* Harvey P. Dale, Dec 18 2024 *)
PROG
(PARI) { default(realprecision, 50); for (n=0, 500, if (n>1, a=round(sqrt(a2^2 + a1^2)); a2=a1; a1=a, if (n, a=a1=2, a=a2=1)); write("b063827.txt", n, " ", a) ) } \\ Harry J. Smith, Sep 01 2009
CROSSREFS
KEYWORD
nonn
AUTHOR
Henry Bottomley, Aug 20 2001
EXTENSIONS
Missing parenthesis added to definition by Harry J. Smith, Sep 01 2009
STATUS
approved