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.

A051667 a(n) = 6*2^n - 4*n - 6.

Original entry on oeis.org

0, 2, 10, 30, 74, 166, 354, 734, 1498, 3030, 6098, 12238, 24522, 49094, 98242, 196542, 393146, 786358, 1572786, 3145646, 6291370, 12582822, 25165730, 50331550, 100663194, 201326486, 402653074, 805306254, 1610612618, 3221225350, 6442450818, 12884901758, 25769803642
Offset: 0

Views

Author

Keywords

Crossrefs

Row sums of A051666.
Equals 2 * A050488.
Cf. A000290.

Programs

  • Magma
    I:=[0, 2, 10]; [n le 3 select I[n] else 4*Self(n-1)-5*Self(n-2)+2*Self(n-3): n in [1..30]]; // Vincenzo Librandi, Jul 04 2012
  • Mathematica
    CoefficientList[Series[2 x (1 + x)/((1 - x)^2 (1 - 2 x)), {x, 0, 40}], x] (* Vincenzo Librandi, Jul 05 2012 *)

Formula

From Colin Barker, Jun 24 2012: (Start)
a(n) = 4*a(n-1) - 5*a(n-2) + 2*a(n-3).
G.f.: 2*x*(1 + x)/((1 - x)^2*(1 - 2*x)). (End)
E.g.f.: 2*exp(x)*(3*exp(x) - 2*x - 3). - Stefano Spezia, May 15 2023