cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-2 of 2 results.

A104863 a(n) = floor(sqrt(a(n-1)^2 + a(n-2)^2)), a(1)=10, a(2)=30.

Original entry on oeis.org

10, 30, 31, 43, 53, 68, 86, 109, 138, 175, 222, 282, 358, 455, 578, 735, 935, 1189, 1512, 1923, 2446, 3111, 3957, 5033, 6402, 8143, 10358, 13175, 16759, 21317, 27116, 34491, 43873, 55807, 70987, 90297, 114859, 146103, 185845, 236398, 300703, 382500, 486547, 618897
Offset: 1

Views

Author

Zak Seidov, Mar 28 2005

Keywords

Crossrefs

Programs

  • Magma
    A104863:= func< n| n lt 3 select 10*(2*n-1) else Floor(Sqrt(Self(n-1)^2 +Self(n-2)^2)) >;
    [A104863(n): n in [1..60]]; // G. C. Greubel, Jun 27 2021
    
  • Mathematica
    nxt[{a_,b_}]:={b,Floor[Sqrt[a^2+b^2]]}; Transpose[NestList[nxt,{10,30},60]][[1]] (* Harvey P. Dale, Jun 18 2013 *)
  • Sage
    @CachedFunction
    def a(n): return 10*(2*n-1) if (n<3) else floor(sqrt(a(n-1)^2 + a(n-2)^2))
    [a(n) for n in (1..60)] # G. C. Greubel, Jun 27 2021

Formula

For n>=17, a(n) = a(n-2) + a(n-4) + 1 (conjectured). If true then for m>5, a(2*m+1) = 4*F(m) + 25*F(m+1) + 1 and a(2*m+2) = 8*F(m) + 30*F(m+1) + 1 with F(n) = A000045(n). - Ralf Stephan, Nov 15 2010

A104864 "Floor of hypotenuse": a(n)=A104863(n)-10*A104803(n).

Original entry on oeis.org

0, 0, 1, 3, 3, 8, 16, 19, 28, 35, 52, 62, 88, 115, 148, 195, 245, 319, 402, 513, 656, 841, 1067, 1363, 1732, 2213, 2818, 3585, 4569, 5807, 7396, 9411
Offset: 0

Views

Author

Zak Seidov, Mar 28 2005

Keywords

Crossrefs

Showing 1-2 of 2 results.