OFFSET
2,3
FORMULA
a(n) = a(n-1) + (n-1)^2 * a(n-2) + (-1)^n * (n-2)!.
E.g.f.: (log(1 + x))^2/(2 * (1 - x)).
a(n) ~ n! * log(2)^2 / 2 * (1 + (-1)^n*log(n)/(log(2)^2*n)). - Vaclav Kotesovec, Sep 27 2021
PROG
(PARI) a(n) = n!*polcoef(sum(k=2, n, binomial(x, k)), 2);
(PARI) a(n) = if(n<2, 0, a(n-1)+(n-1)^2*a(n-2)+(-1)^n*(n-2)!);
(PARI) N=40; x='x+O('x^N); Vec(serlaplace(log(1+x)^2/(2*(1-x))))
(Python)
from sympy.abc import x
from sympy import ff, expand
def A348063(n): return sum(ff(n, n-k)*expand(ff(x, k)).coeff(x**2) for k in range(2, n+1)) # Chai Wah Wu, Sep 27 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Seiichi Manyama, Sep 26 2021
STATUS
approved