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.

A104908 a(n) = floor(sqrt(a(n-1)^2 + a(n-2)^2)), a(1)=100, a(2)=300.

Original entry on oeis.org

100, 300, 316, 435, 537, 691, 875, 1114, 1416, 1801, 2290, 2913, 3705, 4713, 5994, 7624, 9698, 12335, 15690, 19958, 25386, 32291, 41075, 52248, 66460, 84538, 107534, 136785, 173993, 221322, 281526, 358106
Offset: 1

Views

Author

Zak Seidov, Mar 29 2005

Keywords

Crossrefs

Programs

  • Magma
    A104908:= func< n| n lt 3 select 100*(2*n-1) else Floor(Sqrt(Self(n-1)^2 +Self(n-2)^2)) >;
    [A104908(n): n in [1..40]]; // G. C. Greubel, Jun 27 2021
    
  • Mathematica
    a[n_]:= a[n]= If[n<3, 100*(2*n-1), Floor[Sqrt[a[n-1]^2 + a[n-2]^2]] ];
    Table[a[n], {n, 40}] (* G. C. Greubel, Jun 27 2021 *)
  • Sage
    @CachedFunction
    def a(n): return 100*(2*n-1) if (n<3) else floor(sqrt(a(n-1)^2 + a(n-2)^2))
    [a(n) for n in (1..40)] # G. C. Greubel, Jun 27 2021

Formula

a(n) = floor(sqrt(a(n-1)^2 + a(n-2)^2)) with a(1) = 100, a(2) = 300.

A104910 a(n) = A104908(n) - 100*A104803(n).

Original entry on oeis.org

0, 0, 16, 35, 37, 91, 175, 214, 316, 401, 590, 713, 1005, 1313, 1694, 2224, 2798, 3635, 4590, 5858, 7486, 9591, 12175, 15548, 19760, 25238, 32134, 40885, 52093, 66222, 84326, 107306
Offset: 1

Views

Author

Zak Seidov, Mar 29 2005

Keywords

Crossrefs

Programs

Showing 1-2 of 2 results.