OFFSET
0,3
COMMENTS
See A366834 for more information.
LINKS
Jianing Song, Table of n, a(n) for n = 0..10000
Index entries for linear recurrences with constant coefficients, signature (5,-10,10,-5,1).
FORMULA
a(n) = binomial(n,1) + 1870*binomial(n,2) + 20244*binomial(n,3) + 29400*binomial(n,4) = 1225*n^4 - 3976*n^3 + 4288*n^2 - 1536*n.
G.f.: x/(1-x)^2 + 1870*x^2/(1-x)^3 + 20244*x^3/(1-x)^4 + 29400*x^4/(1-x)^5.
E.g.f.: exp(x)*x*(1 + 935*x + 3374*x^2 + 1225*x^3).
EXAMPLE
sin(sin(x)) = x - 2*x^3/3! + 12*x^5/5! - 128*x^7/7! + 1872*x^9/9! - ...;
sin(sin(sin(x))) = x - 3*x^3/3! + 33*x^5/5! - 731*x^7/7! + 25857*x^9/9! - ...;
sin(sin(sin(sin(x)))) = x - 4*x^3/3! + 64*x^5/5! - 2160*x^7/7! + 121600*x^9/9! - ....
MATHEMATICA
(* Alternative: *)
LinearRecurrence[{5, -10, 10, -5, 1}, {0, 1, 1872, 25857, 121600}, 30] (* Paolo Xausa, Jun 03 2026 *)
PROG
(PARI) a(n) = 1225*n^4 - 3976*n^3 + 4288*n^2 - 1536*n
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Jianing Song, May 21 2026
STATUS
approved
