OFFSET
0,3
COMMENTS
abs(a(n))/n is prime for n = 2, 3, 4, 5, 7, 13, 19, 28, 643 and no others up to n = 2000. - Robert Israel, May 13 2025
LINKS
Robert Israel, Table of n, a(n) for n = 0..448
Eric Weisstein's World of Mathematics, Bell Polynomial.
Wikipedia, Touchard polynomials
FORMULA
a(0) = 0; a(n) = -n*a(n-1) + n^3.
E.g.f.: B_3(x) * exp(x) / (1+x), where B_n(x) = Bell polynomials.
a(n) ~ (-1)^n * exp(-1) * n!. - Vaclav Kotesovec, Jul 18 2025
MAPLE
f:= proc(n) option remember;
- n*procname(n-1)+n^3
end proc:
f(0):= 0:
seq(f(i), i=0..30); # Robert Israel, May 13 2025
MATHEMATICA
Table[n + n^2 + (-1)^n*n*Subfactorial[n-1], {n, 0, 20}] (* Vaclav Kotesovec, Jul 18 2025 *)
PROG
(PARI) my(N=30, x='x+O('x^N)); concat(0, Vec(serlaplace(sum(k=0, 3, stirling(3, k, 2)*x^k)*exp(x)/(1+x))))
CROSSREFS
KEYWORD
sign
AUTHOR
Seiichi Manyama, Jan 04 2024
STATUS
approved
