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 A006348 M3609 #33 Nov 07 2017 05:25:31 %S A006348 0,1,4,25,174,1393,12536,125361,1378970,16547641,215119332,3011670649, %T A006348 45175059734,722800955745,12287616247664,221177092457953, %U A006348 4202364756701106,84047295134022121,1764993197814464540,38829850351918219881,893086558094119057262 %N A006348 a(n) = (n+2)*a(n-1) + (-1)^n. %C A006348 a(n) is a function of the subfactorials... a(n) = A000166(n+2) - 1/3*(n+2)! /Q, i.e., ... 1 = 9 - 24/3, 4 = 44 - 120/3, 25 = 265 - 720/3 ... - _Gary Detlefs_, Dec 17 2009 %D A006348 N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence). %H A006348 Robert Israel, <a href="/A006348/b006348.txt">Table of n, a(n) for n = 1..448</a> %H A006348 J. A. Sharp & N. J. A. Sloane, <a href="/A002026/a002026.pdf">Correspondence, 1977</a> %F A006348 a(n) = (n+1)(a(n-1) + a(n-2)). - _Gary Detlefs_, Dec 17 2009 %F A006348 E.g.f. with offset 0: ((2 + 3*x + x^3)*exp(-x) - 2)/(1 - x)^4. From int(((9 + 8*x + 6*x^2 + x^4)*exp(-x) - 8)/(1 - x)^5, x) with input 0 for x = 0. - _Wolfdieter Lang_, May 03 2010 %F A006348 From _Robert Israel_, Feb 28 2017: (Start) %F A006348 a(n) = Gamma(n+3, -1)/e - (n+2)!/3. %F A006348 a(n) ~ (1/e - 1/3) sqrt(2 Pi) n^(n+5/2) exp(-n). (End) %p A006348 a:= n-> (n+2)!*sum((-1)^k/k!, k=4..n+2): seq(a(n), n=1..23); # _Zerinvary Lajos_, May 25 2007 %p A006348 a:= n-> floor(((n+2)!+1)/exp(1)) -(n+2)!/3: seq(a(n), n=1..23); # _Gary Detlefs_, Dec 17 2009 %K A006348 nonn,easy %O A006348 1,3 %A A006348 _N. J. A. Sloane_