The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A281262 Number of permutations of [2n] with exactly n fixed points. 3

%I #17 Sep 01 2021 03:58:52

%S 1,0,6,40,630,11088,244860,6362928,190900710,6490575520,246642054516,

%T 10358965584240,476512419579196,23825620968559200,1286583532342313400,

%U 74621844875699059680,4626554382293942780550,305352589231397889910080,21374681246197861368840900

%N Number of permutations of [2n] with exactly n fixed points.

%H Alois P. Heinz, <a href="/A281262/b281262.txt">Table of n, a(n) for n = 0..366</a>

%F a(n) = (4*n-2)*((n-1)*a(n-1)+(4*n-6)*a(n-2))/n for n>1, a(n) = 1-n for n<2.

%F a(n) = binomial(2n,n) * A000166(n).

%F a(n) = A008290(2n,n) = A098825(2n,n).

%e a(2) = 6: 1243, 1324, 1432, 2134, 3214, 4231.

%p a:= proc(n) option remember; `if`(n<2, 1-n,

%p (4*n-2)*((n-1)*a(n-1)+(4*n-6)*a(n-2))/n)

%p end:

%p seq(a(n), n=0..20);

%t a[n_] := Binomial[2n, n] Subfactorial[n];

%t a /@ Range[0, 20] (* _Jean-François Alcover_, Sep 01 2021 *)

%Y Cf. A000166, A007318, A008290, A098825.

%K nonn

%O 0,3

%A _Alois P. Heinz_, Apr 12 2017

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 June 9 11:46 EDT 2024. Contains 373239 sequences. (Running on oeis4.)