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.

A358606 a(n) = Sum_{k=0..floor(n/5)} (-1)^k * (n-4*k)!/(n-5*k)!.

Original entry on oeis.org

1, 1, 1, 1, 1, 0, -1, -2, -3, -4, -3, 0, 5, 12, 21, 26, 21, 0, -43, -114, -195, -244, -195, 42, 581, 1440, 2421, 2990, 2157, -1644, -9955, -22974, -37515, -44248, -24219, 50310, 205661, 442140, 689997, 740906, 190245, -1534224, -4941355, -9887058, -14429619, -13255900, 3510141
Offset: 0

Views

Author

Seiichi Manyama, Nov 23 2022

Keywords

Crossrefs

Programs

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

Formula

a(n) = (4 * a(n-1) - n * a(n-5) + 1)/5 for n > 4.