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.

A022372 Fibonacci sequence beginning 2, 20.

Original entry on oeis.org

2, 20, 22, 42, 64, 106, 170, 276, 446, 722, 1168, 1890, 3058, 4948, 8006, 12954, 20960, 33914, 54874, 88788, 143662, 232450, 376112, 608562, 984674, 1593236, 2577910, 4171146, 6749056, 10920202
Offset: 0

Views

Author

Keywords

Crossrefs

Cf. A022100.

Programs

  • Mathematica
    a={};b=2;c=20;AppendTo[a, b];AppendTo[a, c];Do[b=b+c;AppendTo[a, b];c=b+c;AppendTo[a, c], {n, 4!}];a (* Vladimir Joseph Stephan Orlovsky, Sep 18 2008 *)
    Table[2*(Fibonacci[n + 2] + 8*Fibonacci[n]), {n,0,50}] (* or *) LinearRecurrence[{1,1}, {2,20}, 50] (* G. C. Greubel, Aug 27 2017 *)
  • PARI
    for(n=0,50, print1(2*(fibonacci(n+2) + 8*fibonacci(n)), ", ")) \\ G. C. Greubel, Aug 27 2017

Formula

G.f.: (2+18*x)/(1-x-x^2). - Philippe Deléham, Nov 19 2008
a(n) = 2*(Fibonacci(n+2) + 8*Fibonacci(n)). - G. C. Greubel, Aug 27 2017
a(n) = 2*A022100(n). - Alois P. Heinz, Aug 27 2017