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.

A166680 a(n) = n*(a(n-1)-4), a(0) = 1.

Original entry on oeis.org

1, -3, -14, -54, -232, -1180, -7104, -49756, -398080, -3582756, -35827600, -394103644, -4729243776, -61480169140, -860722368016, -12910835520300, -206573368324864, -3511747261522756, -63211450707409680
Offset: 0

Views

Author

Philippe Deléham, Oct 18 2009

Keywords

Crossrefs

Programs

  • Mathematica
    RecurrenceTable[{a[0]==1,a[n]==n(a[n-1]-4)},a,{n,20}] (* Harvey P. Dale, Apr 18 2014 *)
    FoldList[#1*#2 - 4 #2 &, 1, Range[50]] (* G. C. Greubel, May 23 2016 *)

Formula

a(n) = n! - 4*floor(e*n!) + 4, n>0. - Gary Detlefs, Jun 19 2010