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.

A106353 Number of compositions of n into 4 parts such that no two adjacent parts are equal.

Original entry on oeis.org

2, 6, 14, 24, 46, 66, 100, 138, 192, 246, 324, 402, 506, 612, 746, 882, 1054, 1224, 1432, 1644, 1896, 2148, 2448, 2748, 3098, 3450, 3854, 4260, 4726, 5190, 5716, 6246, 6840, 7434, 8100, 8766, 9506, 10248, 11066, 11886, 12790, 13692, 14680, 15672
Offset: 6

Views

Author

Christian G. Bower, Apr 29 2005

Keywords

Crossrefs

Column 4 of A106351. Cf. A003242.

Programs

  • Mathematica
    Drop[CoefficientList[Series[(8x^10+4x^9+6x^8+4x^7+2x^6)/((1-x)(1-x^2)(1-x^3)(1-x^4)),{x,0,60}],x],6] (* or *) LinearRecurrence[{1,1,0,0,-2,0,0,1,1,-1},{2,6,14,24,46,66,100,138,192,246},60] (* Harvey P. Dale, Apr 02 2023 *)

Formula

G.f.: (8*x^10+4*x^9+6*x^8+4*x^7+2*x^6) / ((1-x)*(1-x^2)*(1-x^3)*(1-x^4)).