OFFSET
0,2
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..400
MAPLE
a:= proc(n) option remember; `if`(n=0, 1, a(n-1)+1+n!) end:
seq(a(n), n=0..30); # Alois P. Heinz, Jan 05 2015
MATHEMATICA
Module[{nn=30, f}, f=Accumulate[Range[0, nn]!]; Table[n+f[[n]], {n, nn}]]-1 (* Harvey P. Dale, Nov 04 2020 *)
Module[{nn=30, f}, f=Accumulate[Range[0, nn]!]; Total/@Thread[{f, Range[0, nn]}]] (* Harvey P. Dale, Jan 31 2023 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved