OFFSET
0,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..200
FORMULA
a(0)=7, a(n) = n*a(n-1)-n+1. - Vincenzo Librandi, Sep 29 2013
EXAMPLE
For n=0, a(0)=7; n=1,a(1)=7; n=2, a(2)=13; n=3, a(3)=37; n=4, a(4)=145.
MATHEMATICA
Table[6 n! + 1, {n, 0, 25}] (* Vincenzo Librandi, Sep 29 2013 *)
PROG
(Magma) [6*Factorial(n) + 1: n in [0..25]]; /* or */ [7] cat [n eq 1 select n+6 else n*Self(n-1)-n+1: n in [1..25] ]; // Vincenzo Librandi, Sep 29 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Vincenzo Librandi, Feb 16 2010
STATUS
approved