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.

A162970 Number of 2-cycles in all involutions of {1,2,...,n}.

This page as a plain text file.
%I A162970 #13 Aug 15 2013 04:39:26
%S A162970 0,1,3,12,40,150,546,2128,8352,34380,144100,626736,2784288,12753832,
%T A162970 59692920,286857600,1407536896,7069630608,36217682352,189489626560,
%U A162970 1010037302400,5488251406176,30348031302688,170812160339712
%N A162970 Number of 2-cycles in all involutions of {1,2,...,n}.
%H A162970 Alois P. Heinz, <a href="/A162970/b162970.txt">Table of n, a(n) for n = 1..300</a>
%F A162970 a(n) = (1/2)*n*(n-1)*I(n-2) for n>=2, where I(n)=A000085(n) is the number of involutions of {1,2,...,n}.
%F A162970 Rec. rel.: a(n) = [n/(n-2)][a(n-1) + (n-1)a(n-2)], a(1)=0, a(2)=1.
%F A162970 E.g.f.: x^2/2 * exp(x+x^2/2).
%F A162970 a(n) ~ sqrt(2)/4 * n^(n/2+1)*exp(sqrt(n)-n/2-1/4) * (1-17/(24*sqrt(n))). - _Vaclav Kotesovec_, Aug 15 2013
%e A162970 a(3) = 3 because in (1)(2)(3), (1)(23), (12)(3), (13)(2) we have three 2-cycles.
%p A162970 a[1] := 0: a[2] := 1: for n from 3 to 27 do a[n] := n*(a[n-1]+(n-1)*a[n-2])/(n-2) end do: seq(a[n], n = 1 .. 27);
%t A162970 Range[0, 20]! CoefficientList[ Series[x^2/2  Exp[x+x^2/2], {x, 0, 20}], x] // Rest
%Y A162970 Cf. A000085, A013989.
%K A162970 nonn
%O A162970 1,3
%A A162970 _Emeric Deutsch_, Jul 22 2009