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!)
A306535 Number of permutations p of [2n] having no index i with |p(i)-i| = n. 4

%I #23 May 10 2022 14:43:36

%S 1,1,9,265,14833,1334961,176214841,32071101049,7697064251745,

%T 2355301661033953,895014631192902121,413496759611120779881,

%U 228250211305338670494289,148362637348470135821287825,112162153835443422680893595673,97581073836835777732377428235481

%N Number of permutations p of [2n] having no index i with |p(i)-i| = n.

%C Also 0th term of the 2n-th forward differences of n!.

%H Alois P. Heinz, <a href="/A306535/b306535.txt">Table of n, a(n) for n = 0..225</a>

%H Wikipedia, <a href="https://en.wikipedia.org/wiki/Permutation">Permutation</a>

%F a(n) = A306512(2n,n).

%F a(n) = (2n)! - A306675(n).

%F a(n) = KummerU(-2*n, -2*n, -1). - _Peter Luschny_, May 10 2022

%p b:= proc(n, k) b(n, k):= `if`(k=0, n!, b(n+1, k-1) -b(n, k-1)) end:

%p a:= n-> b(0, 2*n):

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

%p seq(simplify(KummerU(-2*n, -2*n, -1)), n=0..15); # _Peter Luschny_, May 10 2022

%t b[n_, k_] := b[n, k] = If[k == 0, n!, b[n + 1, k - 1] - b[n, k - 1]];

%t a[n_] := b[0, 2n];

%t a /@ Range[0, 23] (* _Jean-François Alcover_, Apr 02 2021, after _Alois P. Heinz_ *)

%Y Cf. A306512, A306675.

%Y Cf. A000142, A047920, A068106.

%K nonn

%O 0,3

%A _Alois P. Heinz_, Feb 22 2019

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 3 10:43 EDT 2024. Contains 373060 sequences. (Running on oeis4.)