editing
approved
Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.
editing
approved
nxt[{a_, b_}]:={b, Round[Sqrt[a^2+b^2]]}; NestList[nxt, {1, 2}, 50][[;; , 1]] (* Harvey P. Dale, Dec 18 2024 *)
approved
editing
proposed
approved
editing
proposed
editing
proposed
a(n) = round[(sqrt(a(n-2)^2 + a(n-1)^2)] ) with a(0) = 1 and a(1) = 2.
a(n)/a(n-1) tends towards 1.27201964951... = sqrt((1+sqrt(5))/2).
Harry J. Smith, <a href="/A063827/b063827.txt">Table of n, a(n) for n = 0,...,500</a>
a(7) = 8 since round[(sqrt(5^2 + 6^2)] ) = round[(sqrt(61)] ) = round[(7.8102...] ) = 8.
(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) ) } [From _\\ _Harry J. Smith_, Sep 01 2009]
Missing ) parenthesis added to definition by Harry J. Smith, Sep 01 2009
approved
editing
_Henry Bottomley (se16(AT)btinternet.com), _, Aug 20 2001
(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) ) } [From _Harry J. Smith (hjsmithh(AT)sbcglobal.net), _, Sep 01 2009]
Missing ) added to definition by _Harry J. Smith (hjsmithh(AT)sbcglobal.net), _, Sep 01 2009
Harry J. Smith, <a href="/A063827/b063827.txt">Table of n, a(n) for n=0,...,500</a>
nonn,new
nonn