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.

A127985 a(n) = floor(2^n*(n/3 + 4/9)).

Original entry on oeis.org

0, 1, 4, 11, 28, 67, 156, 355, 796, 1763, 3868, 8419, 18204, 39139, 83740, 178403, 378652, 800995, 1689372, 3553507, 7456540, 15612131, 32622364, 68040931, 141674268, 294533347, 611436316, 1267611875, 2624702236, 5428361443
Offset: 0

Views

Author

Artur Jasinski, Feb 09 2007

Keywords

Crossrefs

Programs

  • Magma
    [(n/3 + 4/9)*2^n - 1/2 + (-1)^n/18: n in [1..40]]; // Vincenzo Librandi, May 26 2011
    
  • Mathematica
    Table[(n/3 + 4/9) 2^n - 1/2 + (-1)^n/18, {n, 1, 50}]
    LinearRecurrence[{4,-3,-4,4},{1,4,11,28},50] (* Harvey P. Dale, May 15 2011 *)
  • PARI
    a(n)=(n*3+4)<M. F. Hasler, Oct 07 2014

Formula

a(n) = (n/3 + 4/9)*2^n - 1/2 + (-1)^n/18.
a(1)=1, a(2)=4, a(3)=11, a(4)=28, a(n) = 4*a(n-1)-3*a(n-2)-4*a(n-3)+4*a(n-4). - Harvey P. Dale, May 15 2011
G.f.: x*(1-2*x^2)/((1-2*x)^2*(1-x^2)). - Harvey P. Dale, May 15 2011
E.g.f.: ((4 + 6*x)*cosh(2*x) - 5*sinh(x) + 4*cosh(x)*((2 + 3*x)*sinh(x) - 1))/9. - Stefano Spezia, May 25 2023

Extensions

Definition simplified by M. F. Hasler, Oct 07 2014
Sequence extended to a(0)=0 by M. F. Hasler, Oct 08 2014