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.

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

Original entry on oeis.org

1, 1, 1, 0, -15, -99, -398, -1175, -2351, 0, 29601, 183195, 756978, 2351805, 4885791, 0, -63746991, -400000275, -1675991918, -5274560891, -11081420615, 0, 147257373891, 931226954949, 3929550225586, 12446852889901, 26304183607651, 0, -353181028924809
Offset: 0

Views

Author

Seiichi Manyama, Mar 27 2019

Keywords

Crossrefs

Central coefficients of number triangle A307156.

Programs

  • Mathematica
    a[n_] := Sum[(-1)^k * Binomial[n,3*k]^2, {k, 0, Floor[n/3]}]; Array[a, 30, 0] (* Amiram Eldar, May 20 2021 *)
  • PARI
    {a(n) = sum(k=0, n\3, (-1)^k*binomial(n, 3*k)^2)}

Formula

a(6*n+3) = 0 for n >= 0.