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.

A358604 a(n) = Sum_{k=0..floor(n/3)} (-1)^k * (n-2*k)!/(n-3*k)!.

Original entry on oeis.org

1, 1, 1, 0, -1, -2, -1, 2, 7, 8, -1, -26, -49, -28, 103, 314, 359, -344, -2113, -3682, -161, 14684, 36791, 25762, -100297, -373456, -472241, 587846, 3877487, 7149988, -1111801, -40808566, -103472249, -56751688, 424662623, 1490284654, 1674543359, -4121143444
Offset: 0

Views

Author

Seiichi Manyama, Nov 23 2022

Keywords

Crossrefs

Programs

  • PARI
    a(n) = sum(k=0, n\3, (-1)^k*(n-2*k)!/(n-3*k)!);

Formula

a(n) = (2 * a(n-1) - n * a(n-3) + 1)/3 for n > 2.