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.

A369805 Expansion of 1/(1 - x^2/(1-x)^7).

Original entry on oeis.org

1, 0, 1, 7, 29, 98, 316, 1043, 3536, 12083, 41168, 139750, 473824, 1607014, 5453022, 18506947, 62808496, 213144034, 723295969, 2454483506, 8329290739, 28265565587, 95919580313, 325504019213, 1104600373788, 3748469764612, 12720462563684, 43166996581876
Offset: 0

Views

Author

Seiichi Manyama, Feb 01 2024

Keywords

Comments

Number of compositions of 7*n-2 into parts 2 and 7.

Crossrefs

Programs

  • PARI
    my(N=30, x='x+O('x^N)); Vec(1/(1-x^2/(1-x)^7))
    
  • PARI
    a(n) = sum(k=0, n\2, binomial(n-1+5*k, n-2*k));

Formula

a(n) = A369813(7*n-2) for n > 0.
a(n) = 7*a(n-1) - 20*a(n-2) + 35*a(n-3) - 35*a(n-4) + 21*a(n-5) - 7*a(n-6) + a(n-7) for n > 7.
a(n) = Sum_{k=0..floor(n/2)} binomial(n-1+5*k,n-2*k).