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.

A140322 a(n) = -1/6 + (-1)^n/2 + 2*4^n/3.

Original entry on oeis.org

1, 2, 11, 42, 171, 682, 2731, 10922, 43691, 174762, 699051, 2796202, 11184811, 44739242, 178956971, 715827882, 2863311531, 11453246122, 45812984491, 183251937962, 733007751851, 2932031007402, 11728124029611, 46912496118442, 187649984473771, 750599937895082
Offset: 0

Views

Author

Paul Curtz, May 26 2008

Keywords

Comments

a(n+1) - 4a(n)= period 2: repeat -2, 3.

Programs

  • Magma
    [-1/6+(1/2)*(-1)^n+(2/3)*4^n: n in [0..25]]; // Vincenzo Librandi, Aug 09 2011
  • Mathematica
    LinearRecurrence[{4,1,-4},{1,2,11},30] (* Harvey P. Dale, Sep 17 2013 *)

Formula

a(n) = 4*a(n-1) + a(n-2) - 4*a(n-3).
G.f.: ( 1 - 2*x + 2*x^2 ) / ( (x-1)*(4*x-1)*(1+x) ). - R. J. Mathar, Nov 21 2011