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.

A375275 Expansion of (1 - x + x^2)/(1 - 2*x + 3*x^2 + 2*x^3 + x^4).

Original entry on oeis.org

1, 1, 0, -5, -13, -12, 25, 117, 196, 3, -841, -2200, -2079, 4121, 19720, 33435, 1547, -140772, -372775, -359763, 678796, 3323203, 5702319, 437200, -23557759, -63154959, -62213360, 111716475, 559940707, 972313668, 103585625, -3941367643, -10698060204
Offset: 0

Views

Author

Seiichi Manyama, Aug 09 2024

Keywords

Crossrefs

Programs

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

Formula

a(n) = 2*a(n-1) - 3*a(n-2) - 2*a(n-3) - a(n-4).
a(n) = Sum_{k=0..floor(n/2)} (-1)^k * binomial(2*n-2*k,2*k).