OFFSET
0,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..200
FORMULA
a(0)=6; for n>0, a(n) = n*a(n-1)-n+1. - Vincenzo Librandi, Sep 28 2013
(n-2)*a(n) - (n^2-n-1)*a(n-1) + (n-1)^2*a(n-2) = 0. [Bruno Berselli, Sep 28 2013]
MAPLE
MATHEMATICA
Table[5 n! + 1, {n, 0, 20}] (* Vincenzo Librandi, Sep 28 2013 *)
PROG
(Magma) [5*Factorial(n) + 1: n in [0..20]]; /* or */ [6] cat [n eq 1 select n+5 else n*Self(n-1)-n+1: n in [1..25] ]; // Vincenzo Librandi, Sep 28 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Feb 16 2010
STATUS
approved