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.

A030435 Expansion of g.f. (1 + x - 2*x^2 - x^3)/(1/2 - 2*x^2 + x^4).

Original entry on oeis.org

2, 2, 4, 6, 12, 20, 40, 68, 136, 232, 464, 792, 1584, 2704, 5408, 9232, 18464, 31520, 63040, 107616, 215232, 367424, 734848, 1254464, 2508928, 4283008, 8566016, 14623104, 29246208, 49926400, 99852800, 170459392, 340918784, 581984768, 1163969536, 1987020288
Offset: 0

Views

Author

Keywords

Comments

Also (starting 4,6,...) the number of zig-zag paths from top to bottom of a rectangle of width 7, whose color is that of the top right corner. - Joseph Myers, Dec 24 2008

Crossrefs

Twice A030436.

Programs

  • Mathematica
    CoefficientList[Series[(1+x-2*x^2-x^3)/(1/2-2*x^2+x^4),{x,0,40}],x] (* Harvey P. Dale, Oct 05 2020 *)
  • PARI
    Vec((1+x-2*x^2-x^3)/(1/2-2*x^2+x^4)+O(x^99)) \\ Charles R Greathouse IV, Sep 27 2012

Formula

E.g.f.: cosh(r*x) + cosh(s*x) + (r*sinh(r*x) + s*sinh(s*x))/2, where r = sqrt(2 - sqrt(2)) and s = sqrt(2 + sqrt(2)). - Stefano Spezia, Jun 14 2023