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.

A052609 a(n) = (2*n - 2)*n!.

This page as a plain text file.
%I A052609 #27 Jan 23 2025 20:03:30
%S A052609 0,0,4,24,144,960,7200,60480,564480,5806080,65318400,798336000,
%T A052609 10538035200,149448499200,2266635571200,36614882304000,
%U A052609 627683696640000,11381997699072000,217680705994752000
%N A052609 a(n) = (2*n - 2)*n!.
%C A052609 Number of permutations of {1,2,...,n+2} such that there are exactly two entries between the entries 1 and 2. Example: a(2)=4 because we have 1342, 1432, 2341 and 2431. - _Emeric Deutsch_, Apr 06 2008
%C A052609 a(n) = A138770(n+2). - _Emeric Deutsch_, Apr 06 2008
%H A052609 Vincenzo Librandi, <a href="/A052609/b052609.txt">Table of n, a(n) for n = 0..300</a>
%H A052609 INRIA Algorithms Project, <a href="http://ecs.inria.fr/services/structure?nbr=554">Encyclopedia of Combinatorial Structures 554</a>
%F A052609 E.g.f.: 2*x^2/(-1+x)^2.
%F A052609 Recurrence: {a(1)=0, a(0)=0, a(2)=4, (-n^2-n)*a(n)+(n-1)*a(n+1)}.
%p A052609 spec := [S,{S=Prod(Z,Sequence(Z),Sequence(Z),Union(Z,Z))},labeled]: seq(combstruct[count](spec,size=n), n=0..20);
%o A052609 (Magma) [0] cat [(2*n-2)*Factorial(n): n in [1..25]]; // _Vincenzo Librandi_, Oct 11 2011
%o A052609 (PARI) a(n)=(2*n-2)*n! \\ _Charles R Greathouse IV_, Nov 20 2011
%Y A052609 Cf. A138770.
%K A052609 easy,nonn
%O A052609 0,3
%A A052609 encyclopedia(AT)pommard.inria.fr, Jan 25 2000