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.

A006504 Coefficient of x^4 in (1-x-x^2)^(-n).

Original entry on oeis.org

5, 20, 51, 105, 190, 315, 490, 726, 1035, 1430, 1925, 2535, 3276, 4165, 5220, 6460, 7905, 9576, 11495, 13685, 16170, 18975, 22126, 25650, 29575, 33930, 38745, 44051, 49880, 56265, 63240, 70840, 79101, 88060, 97755, 108225, 119510, 131651, 144690, 158670
Offset: 1

Views

Author

Keywords

References

  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

Crossrefs

Row n=4 of A144064.

Programs

Formula

The coefficient of x^4 in (1-x-x^2)^(-n) is the coefficient of x^4 in (1 + x + 2x^2 + 3x^3 + 5x^4)^n. Using the multinomial theorem one then finds that a(n) = 7n/4 + 59*n^2/24 + 3*n^3/4 + n^4/24. - Pieter Moree (moree(AT)mpim-bonn.mpg.de), Sep 03 2003
a(n) = n*(n+1)*(n+3)*(n+14)/4!. - Alois P. Heinz, Jan 21 2017