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.

A013982 Expansion of 1/(1-x^2-x^3-x^4-x^5).

Original entry on oeis.org

1, 0, 1, 1, 2, 3, 4, 7, 10, 16, 24, 37, 57, 87, 134, 205, 315, 483, 741, 1137, 1744, 2676, 4105, 6298, 9662, 14823, 22741, 34888, 53524, 82114, 125976, 193267, 296502, 454881, 697859, 1070626, 1642509
Offset: 0

Views

Author

Keywords

Comments

Number of compositions of n into parts p where 2 <= p < = 5. [Joerg Arndt, Jun 24 2013]

Programs

  • Magma
    m:=40; R:=PowerSeriesRing(Integers(), m); Coefficients(R!(1/(1-x^2-x^3-x^4-x^5))); // Vincenzo Librandi, Jun 24 2013
  • Mathematica
    CoefficientList[Series[1/(1-x^2-x^3-x^4-x^5),{x,0,40}],x] (* or *) LinearRecurrence[{0,1,1,1,1},{1,0,1,1,2},40] (* Harvey P. Dale, Sep 19 2011 *)
  • PARI
    Vec(1/(1-x^2-x^3-x^4-x^5)+O(x^99)) \\ Charles R Greathouse IV, Sep 26 2012
    

Formula

a(n) = a(n-5) + a(n-4) + a(n-3) + a(n-2). - Jon E. Schoenfield, Aug 07 2006