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.

A166036 a(n) = (4^n+8*(-5)^n)/9.

Original entry on oeis.org

1, -4, 24, -104, 584, -2664, 14344, -67624, 354504, -1706984, 8797064, -42936744, 218878024, -1077612904, 5455173384, -27007431464, 136110899144, -676259528424, 3398477511304, -16923668079784
Offset: 0

Views

Author

Philippe Deléham, Oct 05 2009

Keywords

Crossrefs

Programs

  • Mathematica
    Table[(4^n+8(-5)^n)/9,{n,0,30}] (* or *) LinearRecurrence[{-1,20},{1,-4},30] (* Harvey P. Dale, Mar 05 2016 *)
  • PARI
    vector(100, n, n--; (4^n+8*(-5)^n)/9) \\ Altug Alkan, Apr 24 2016

Formula

a(n) = -a(n-1) + 20*a(n-2), a(0) = 1, a(1) = -4, for n>1.
a(n) = Sum_{k=0..n} A112555(n,k)*(-5)^k.
G.f.: (1-3x)/(1+x-20x^2).
E.g.f.: (1/9)*(exp(4*x) + 8*exp(-5*x)). - G. C. Greubel, Apr 24 2016