OFFSET
0,4
FORMULA
a(n+1) = n*(a(n) + a(n-1) - n + 2), a(0)=0, a(1)=0.
a(n) = (A000166(n) + n - 1)/2.
E.g.f.: sinh(log(1/(1-x)) - x). - Geoffrey Critzer, Jun 23 2014
MAPLE
a := proc (n) local x, y, t, k; if n <= 1 then 0 else x := 0; y := 0; for k from 2 to n do t := y; y := (k-1)*(x+y-k+3); x := t end do; y end if end proc;
MATHEMATICA
nn=23; Range[0, nn]!CoefficientList[Series[Sinh[Log[1/(1-x)]-x], {x, 0, nn}], x] (* Geoffrey Critzer, Jun 23 2014 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
José H. Nieto S., Sep 16 2012
STATUS
approved