OFFSET
0,4
LINKS
Robert Israel, Table of n, a(n) for n = 0..580
FORMULA
E.g.f.: (1-exp(-x))*exp(1-exp(-x)): G.f.: Sum(k*x^k/Product(1+l*x, l = 1 .. k), k = 1 .. infinity).
a(n) = Sum_{k=0..n} (-1)^(k+1)*binomial(n,k)*A000587(k+2). - Peter Luschny, Apr 17 2011
G.f.: x*G(0)/(1+x) where G(k) = 1 + 2*x*(k+1)/((2*k+1)*(2*x*k+2*x+1) - x*(2*k+1)*(2*k+3)*(2*x*k+2*x+1)/(x*(2*k+3) + 2*(k+1)*(2*x*k+3*x+1)/G(k+1) )); (recursively defined continued fraction). - Sergei N. Gladkovskii, Dec 19 2012
G.f.: 1/x - G(0)/x, where G(k) = 1 - x^2*(k+1)/(x^2*(k+1) + (x*k + 1 - x)*(x*k + 1)/G(k+1) ); (continued fraction). - Sergei N. Gladkovskii, Feb 06 2014
MAPLE
A101851 := proc(n) local k;
add((-1)^(n-k)*k*combinat[stirling2](n, k), k = 0..n) end:
seq(A101851(n), n = 0..26); # Peter Luschny, Apr 17 2011
MATHEMATICA
Table[Sum[(-1)^(n-k) k StirlingS2[n, k], {k, 0, n}], {n, 0, 30}] (* Harvey P. Dale, Aug 09 2013 *)
Table[(-1)^n (BellB[n, -1] + BellB[n + 1, -1]), {n, 0, 25}] (* Vladimir Reshetnikov, Oct 21 2015 *)
PROG
(PARI) a(n) = sum(k=0, n, (-1)^(n-k)*k*stirling(n, k, 2)); \\ Michel Marcus, Oct 22 2015
CROSSREFS
KEYWORD
easy,sign
AUTHOR
Vladeta Jovovic, Jan 27 2005
STATUS
approved