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.

A106354 Number of compositions of n into 5 parts such that no two adjacent parts are equal.

Original entry on oeis.org

1, 3, 15, 30, 68, 119, 204, 316, 489, 696, 987, 1340, 1801, 2348, 3035, 3833, 4812, 5935, 7273, 8792, 10576, 12576, 14887, 17465, 20401, 23651, 27319, 31349, 35861, 40791, 46260, 52212, 58776, 65881, 73667, 82068, 91225, 101067, 111748, 123185
Offset: 7

Views

Author

Christian G. Bower, Apr 29 2005

Keywords

Crossrefs

Column 5 of A106351. Cf. A003242.

Programs

  • Mathematica
    LinearRecurrence[{1,1,0,0,-1,-1,-1,1,1,1,0,0,-1,-1,1},{1,3,15,30,68,119,204,316,489,696,987,1340,1801,2348,3035},40] (* Harvey P. Dale, Dec 15 2013 *)

Formula

G.f.: -x^7*(16*x^8 +12*x^7 +21*x^6 +22*x^5 +23*x^4 +12*x^3 +11*x^2 +2*x +1) / ((x -1)^5*(x +1)^2*(x^2 +1)*(x^2 +x +1)*(x^4 +x^3 +x^2 +x +1)). [Colin Barker, Feb 13 2013]