OFFSET
0,2
COMMENTS
LINKS
Seiichi Manyama, Table of n, a(n) for n = 0..253 (terms 0..100 from Harry J. Smith)
FORMULA
a(n) = sum(k=0...n, (n-k)!^2 ). - Ross La Haye, Sep 21 2004
Recurrence: a(0) = 1, a(1) = 2, a(n) = (n^2+1)*a(n-1) - n^2*a(n-2). - Vladimir Reshetnikov, Oct 28 2015
EXAMPLE
a(2) = 0!*0! + 1!*1! + 2!*2! = 6.
MAPLE
MATHEMATICA
s=0; Table[s=s+(n!)^2, {n, 0, 20}]
Accumulate[(Range[0, 20]!)^2] (* Harvey P. Dale, Apr 19 2015 *)
PROG
(PARI) { a=0; for (n=0, 100, write("b061062.txt", n, " ", a+=(n!)^2) ) } \\ Harry J. Smith, Jul 17 2009
CROSSREFS
KEYWORD
nonn
AUTHOR
Jason Earls, May 27 2001
EXTENSIONS
More terms from T. D. Noe, Dec 08 2004
STATUS
approved