OFFSET
1,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..400
FORMULA
a(n) = n!*Sum_{k=1..n} Sum_{i=1..k} (-1)^(i+1)/i.
a(n) ~ n!*n*log(2). - Vaclav Kotesovec, Jun 27 2013
a(n) = n!*((-1)^n*(n + 1)*LerchPhi(-1, 1, n + 2) + log(2)*(n + 1) + ((-1)^(n + 1) - 1) / 2). - Peter Luschny, Jun 22 2022
MATHEMATICA
CoefficientList[Series[Log[1+x]/(1-x)^2, {x, 0, 20}], x]* Range[0, 20]! (* Vaclav Kotesovec, Jun 27 2013 *)
a[n_] := n! ((-1)^n (n + 1) LerchPhi[-1, 1, n + 2] + Log[2] (n + 1) + ((-1)^(n + 1) - 1) /2); Table[Simplify[a[n]], {n, 1, 22}] (* Peter Luschny, Jun 22 2022 *)
PROG
(PARI) for(n=1, 25, print1(n!*sum(k=1, n, sum(i=1, k, (-1)^(i+1)/i)), ", ")) \\ G. C. Greubel, Jan 21 2017
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Vladeta Jovovic, Aug 14 2005
STATUS
approved