login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A202830 E.g.f.: exp(2*x + 3*x^2/2). 2

%I #42 Aug 24 2022 09:28:43

%S 1,2,7,26,115,542,2809,15374,89737,548450,3519799,23493098,163139563,

%T 1172030654,8706504265,66638295998,525069283921,4248776775746,

%U 35276087031463,299986119953210,2610709200699811,23220585598592222,210915850841272537,1954390351189631726

%N E.g.f.: exp(2*x + 3*x^2/2).

%C From _Emanuele Munarini_, May 16 2014: (Start)

%C a(n) is the number of partitions of an n-set where each block consists of one or two elements, and each block is endowed with a permutation or a linear order.

%C For instance, for n = 2, we have the following partitions of the set {1,2}:

%C (1)(2), (1)[2], [1](2), [1][2], (12), [12], [21] where parenthesis denote blocks consisting of cycles, and square brackets denote blocks consisting of linear orders. (End)

%F a(n) = Sum_{k=0..floor(n/2)} 2^(n-3*k)*3^k * n!/((n-2*k)!*k!).

%F O.g.f.: 1/(1-2*x - 3*x^2/(1-2*x - 6*x^2/(1-2*x - 9*x^2/(1-2*x - 12*x^2/(1-2*x -...))))), (continued fraction).

%F E.g.f.: exp((4*x+3*x^2)/2) = G(0); G(k) = 1+(4*x+3*x^2)/(4*k+2-(4*x+3*x^2)*(4*k+2)/(4*x+3*x^2+4*(k+1)/G(k+1))) ; (continued fraction). - Sergei N. Gladkovskii, Dec 28 2011

%F a(n) = 2*a(n-1) + 3*(n-1)*a(n-2), a(0)=1, a(1)=2. - Sergei N. Gladkovskii, Jul 29 2012

%F a(n) ~ exp((2/3)*sqrt(3*n) - n/2 - 1/3)*3^(n/2)*n^(n/2)/sqrt(2)*(1 + (11/54)*sqrt(3)/sqrt(n)). - _Vaclav Kotesovec_, Oct 20 2012

%F a(n) = Sum_{k=0..n} s(n,k)*(-1)^(n-k)*(3^n/2^(n-k))*B(k,2/3), where the s(n,k) are the (signless) Stirling numbers of the first kind and the B(n,x) = Sum_{k=0..n} S(n,k)*x^k are the Stirling polynomials (or exponential polynomials), where the S(n,k) are the Stirling numbers of the second kind. - _Emanuele Munarini_, May 15 2014

%F a(n) = i^(1-n)*2^((1+n)/2)*3^((n-1)/2)*U((1-n)/2, 3/2, -2/3), U Kummer's hypergeometric function of the second kind. - _Peter Luschny_, May 15 2014

%e E.g.f.: A(x) = 1 + 2*x + 7*x^2/2! + 26*x^3/3! + 115*x^4/4! + 542*x^5/5! + ...

%p a := n -> I^(1-n)*2^((1+n)/2)*3^((n-1)/2)*KummerU((1-n)/2, 3/2, -2/3);

%p seq(round(evalf(a(n), 32)), n=0..23); # _Peter Luschny_, May 15 2014

%t CoefficientList[Series[E^(2*x+3*x^2/2), {x, 0, 20}], x]* Range[0, 20]! (* _Vaclav Kotesovec_, Oct 20 2012 *)

%t a[n_] := Sum[StirlingS1[n, k]*3^n/2^(n - k) BellB[k, 2/3], {k, 0, n}]; Table[a[n], {n, 0, 12}] (* _Emanuele Munarini_, May 15 2014 *)

%o (PARI) {a(n)=n!*polcoeff(exp(2*x+3*x^2/2+x*O(x^n)),n)}

%o (PARI) {a(n)=sum(k=0,n\2,2^(n-3*k)*3^k*n!/((n-2*k)!*k!))}

%o (PARI) /* O.g.f. as a continued fraction: */

%o {a(n)=local(CF=1+2*x+x*O(x^n)); for(k=1, n-1, CF=1/(1-2*x-3*(n-k)*x^2*CF)); polcoeff(CF, n)}

%o (Maxima) B(n,x) := sum(stirling2(n,k)*x^k,k,0,n);

%o a(n) := sum(stirling1(n,k)*3^n/2^(n-k)*B(k,2/3),k,0,n);

%o makelist(a(n),n,0,40); /* _Emanuele Munarini_, May 15 2014 */

%Y Cf. A202829.

%K nonn

%O 0,2

%A _Paul D. Hanna_, Dec 25 2011

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 19 09:23 EDT 2024. Contains 371782 sequences. (Running on oeis4.)