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.

A372410 Coefficient of x^n in the expansion of ( (1-x+x^2) / (1-x)^3 )^n.

Original entry on oeis.org

1, 2, 12, 77, 516, 3552, 24891, 176647, 1265508, 9132530, 66288762, 483442434, 3539626635, 26002266656, 191556630375, 1414649524077, 10469628711396, 77630719516650, 576585458828844, 4288881479411395, 31945446999811266, 238233164413294792, 1778587750475510316
Offset: 0

Views

Author

Seiichi Manyama, Apr 29 2024

Keywords

Crossrefs

Programs

  • PARI
    a(n, s=2, t=1, u=3) = sum(k=0, n\s, binomial(t*n, k)*binomial((u-t+1)*n-(s-1)*k-1, n-s*k));

Formula

a(n) = Sum_{k=0..floor(n/2)} binomial(n,k) * binomial(3*n-k-1,n-2*k).
The g.f. exp( Sum_{k>=1} a(k) * x^k/k ) has integer coefficients and equals (1/x) * Series_Reversion( x * (1-x)^3 / (1-x+x^2) ). See A366049.