cp's OEIS Frontend

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.

A027412 a(n) = 2*a(n-1) + (n-2)*a(n-2) with a(0) = 1, a(1) = 2.

This page as a plain text file.
%I A027412 #20 Apr 03 2023 09:16:45
%S A027412 1,2,4,10,28,86,284,998,3700,14386,58372,246218,1076156,4860710,
%T A027412 22635292,108459814,533813716,2694524642,13930068740,73667056394,
%U A027412 398075350108,2195824771702,12353156545564,70818633296870
%N A027412 a(n) = 2*a(n-1) + (n-2)*a(n-2) with a(0) = 1, a(1) = 2.
%H A027412 Vincenzo Librandi, <a href="/A027412/b027412.txt">Table of n, a(n) for n = 0..200</a>
%H A027412 R. Donaghey, <a href="http://dx.doi.org/10.1016/0097-3165(76)90060-1">Binomial self-inverse sequences and tangent coefficients</a>, J. Combin. Theory, Series A, 21 (1976), 155-163.
%F A027412 a(n) = 2 * A005425(n-1), n > 0.
%F A027412 a(n) ~ sqrt(2)*exp(2*sqrt(n)-n/2-1)*n^(n/2-1/2). - _Vaclav Kotesovec_, Oct 08 2012
%t A027412 RecurrenceTable[{a[0]==1, a[1]==2, a[n]==2 a[n-1] + (n-2) a[n-2]}, a,{ n, 40}] (* _Vincenzo Librandi_, Dec 29 2012 *)
%t A027412 Table[If[n==0, 1, 2*(-I/Sqrt[2])^(n-1)*HermiteH[n-1, I*Sqrt[2]]], {n, 0, 40}] (* _G. C. Greubel_, Apr 01 2023 *)
%o A027412 (Magma) [n le 2 select n else 2*Self(n-1) + (n-3)*Self(n-2): n in [1..40]]; // _G. C. Greubel_, Apr 01 2023
%o A027412 (SageMath) [1]+[2*(-i/sqrt(2))^(n-1)*hermite(n-1, i*sqrt(2)) for n in range(1,41)] # _G. C. Greubel_, Apr 01 2023
%Y A027412 Cf. A005425.
%K A027412 nonn,easy
%O A027412 0,2
%A A027412 _Olivier Gérard_