This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A052124 #51 Apr 25 2025 13:32:57 %S A052124 1,1,4,16,88,568,4288,36832,354688,3781504,44199424,561823744, %T A052124 7714272256,113769309184,1793341407232,30085661765632,535170830467072, %U A052124 10060645294440448,199287423535808512,4148644277780217856,90545807649965080576,2067407731760475406336,49285894020028992323584 %N A052124 Expansion of e.g.f. exp(-2*x)/(1-x)^3. %D A052124 R. P. Stanley, Enumerative Combinatorics, Cambridge, Vol. 2, 1999; see Problem 5.64(b). %H A052124 Vincenzo Librandi, <a href="/A052124/b052124.txt">Table of n, a(n) for n = 0..200</a> %F A052124 a(n) = n*a(n-1) + 2*(n-1)*a(n-2). - Detlef Pauly (dettodet(AT)yahoo.de), Sep 22 2003 %F A052124 a(n) = (n+5)*(n+2)*n! * Sum_{k=0..n} (-1)^k*2^(k+2)*(k+3)/(k+5)!. - _Vaclav Kotesovec_, Oct 28 2012 %F A052124 G.f.: 1/Q(0), where Q(k) = 1 + 2*x - x*(k+3)/(1 - x*(k+1)/Q(k+1)); (continued fraction). - _Sergei N. Gladkovskii_, Apr 22 2013 %F A052124 a(n) ~ n!*(n+5)*(n+2)/(2*exp(2)). - _Vaclav Kotesovec_, Jun 15 2013 %F A052124 From _Peter Bala_, Sep 20 2013: (Start) %F A052124 a(n) ~ (1/2)*n^2*n!/e^2 for large n. %F A052124 Letting n -> infinity in the above series for a(n) given by Kotesovec gives the series expansion 1/e^2 = Sum_{k >= 0} (-1)^k*(k+3)*2^(k+3)/(k+5)!. %F A052124 The sequence b(n) := (1/2)*n!*(n+2)*(n+5) satisfies the recurrence for a(n) given above by Pauly but with the starting values b(0) = 5 and b(1) = 9. This leads to the finite continued fraction expansion a(n) = (1/2)*n!*(n+2)*(n+5)( 1/(5 + 4/(1 + 2/(2 + 4/(3 + ... + 2*(n-1)/n)))) ), valid for n >= 2. Letting n -> infinity in the previous result gives the infinite continued fraction expansion 1/e^2 = 1/(5 + 4/(1 + 2/(2 + 4/(3 + ... + 2*(n-1)/(n + ...))))). Cf. A082031. (End) %F A052124 a(n) = A087981(n+2)/(2*(n+1)). - _Seiichi Manyama_, Apr 25 2025 %p A052124 A052124 := proc(n) option remember; if n <=1 then 1 else n*A052124(n-1)+2*(n-1)*A052124(n-2); fi; end; # Detlef Pauly %t A052124 Table[(n+5)*(n+2)*n!*Sum[(-1)^k*2^(k+2)*(k+3)/(k+5)!,{k,0,n}],{n,0,20}] (* _Vaclav Kotesovec_, Oct 28 2012 *) %t A052124 With[{nn=20},CoefficientList[Series[Exp[(-2x)]/(1-x)^3,{x,0,nn}],x] Range[ 0,nn]!] (* _Harvey P. Dale_, Oct 23 2017 *) %o A052124 (PARI) my(x='x+O('x^25)); Vec(serlaplace( exp(-2*x)/(1-x)^3)) \\ _Michel Marcus_, Oct 25 2021 %o A052124 (Python) %o A052124 from math import factorial %o A052124 from fractions import Fraction %o A052124 def A052124(n): return int((n+5)*(n+2)*factorial(n)*sum(Fraction((-1 if k&1 else 1)*(k+3)<<k+2,factorial(k+5)) for k in range(n+1))) # _Chai Wah Wu_, Apr 20 2023 %Y A052124 Cf. A052127, A082031. %Y A052124 Cf. A000023, A087981. %Y A052124 Cf. A000153, A137775. %K A052124 nonn %O A052124 0,3 %A A052124 _N. J. A. Sloane_, Jan 23 2000