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!)
A138772 Number of entries in the second cycles of all permutations of {1,2,...,n}; each cycle is written with the smallest element first and cycles are arranged in increasing order of their first elements. 8

%I #45 Sep 08 2022 08:45:33

%S 0,1,5,27,168,1200,9720,88200,887040,9797760,117936000,1536796800,

%T 21555072000,323805081600,5187108326400,88268019840000,

%U 1590132031488000,30233431388160000,605024315191296000,12711912992722944000,279783730940313600000,6437458713635389440000

%N Number of entries in the second cycles of all permutations of {1,2,...,n}; each cycle is written with the smallest element first and cycles are arranged in increasing order of their first elements.

%H Vincenzo Librandi, <a href="/A138772/b138772.txt">Table of n, a(n) for n = 1..200</a>

%F a(n) = (1/4)*(n-1)!*(n-1)*(n+2).

%F a(n) = (n+1)*a(n-1) + (n-2)!.

%F a(n) = (n-1)*a(n-1) + n!/2.

%F a(n) = Sum_{k=0..n-1} k*A138771(n,k).

%F E.g.f. if offset 0: x*(2-x)/(2*(1-x)^3). Such e.g.f. computations resulted from e-mail exchange with Gary Detlefs. - _Wolfdieter Lang_, May 27 2010

%F a(n) = A000254(n-1) + A159324(n-1). - _Gary Detlefs_, May 13 2012

%F a(n) = n! * Sum_{i=1..n} (Sum_{j=1..i} (j/i)). - _Pedro Caceres_, Apr 19 2019

%F E.g.f.: ( x*(2-x)/(1-x)^2 + 2*log(1-x) )/4. - _G. C. Greubel_, Jul 07 2019

%F D-finite with recurrence a(n) +(-n-1)*a(n-1) -2*a(n-2) +2*(n-3)*a(n-3)=0. - _R. J. Mathar_, Jul 26 2022

%e a(3) = 5 because the number of entries in the second cycles of (1)(2)(3), (1)(23), (132), (12)(3), (123) and (13)(2) is 1+2+0+1+0+1=5.

%p seq((1/4)*factorial(n-1)*(n-1)*(n+2), n = 1 .. 30);

%t Table[((1/4)(n-1)!(n-1)(n+2)),{n,1,30}] (* _Vincenzo Librandi_, May 14 2012 *)

%o (PARI) vector(30, n, (n-1)*(n+2)*(n-1)!/4) \\ _G. C. Greubel_, Jul 07 2019

%o (Magma) [(n-1)*(n+2)*Factorial(n-1)/4: n in [1..30]]; // _G. C. Greubel_, Jul 07 2019

%o (Sage) [(n-1)*(n+2)*factorial(n-1)/4 for n in (1..30)] # _G. C. Greubel_, Jul 07 2019

%o (GAP) List([1..30], n-> (n-1)*(n+2)*Factorial(n-1)/4) # _G. C. Greubel_, Jul 07 2019

%Y Cf. A138771.

%Y Cf. A159324, A000254.

%Y Column k=2 of A185105.

%K nonn

%O 1,3

%A _Emeric Deutsch_, Apr 10 2008

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 May 14 03:35 EDT 2024. Contains 372528 sequences. (Running on oeis4.)