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!)
A332851 Number of entries in the second cycles of all permutations of [n] when cycles are ordered by decreasing lengths. 3

%I #19 Dec 07 2021 22:44:01

%S 1,4,21,131,950,7694,70343,709015,7867174,94945874,1241471451,

%T 17442660795,262748183438,4215551220698,71873188059263,

%U 1296535610096063,24690833276595022,494624740502491786,10406110949475668267,229244825016301188267,5280217980442316367510

%N Number of entries in the second cycles of all permutations of [n] when cycles are ordered by decreasing lengths.

%H Alois P. Heinz, <a href="/A332851/b332851.txt">Table of n, a(n) for n = 2..450</a>

%H Andrew V. Sills, <a href="https://arxiv.org/abs/1912.05306">Integer Partitions Probability Distributions</a>, arXiv:1912.05306 [math.CO], 2019.

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

%F a(n) = Sum_{k=0..floor(n/2)} k * A349979(n,k). - _Alois P. Heinz_, Dec 07 2021

%p b:= proc(n, l) option remember; `if`(n=0, l[2], add((j-1)!*b(n-j,

%p sort([l[], j], `>`)[1..2])*binomial(n-1, j-1), j=1..n))

%p end:

%p a:= n-> b(n, [0$2]):

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

%t b[n_, l_] := b[n, l] = If[n == 0, l[[2]], Sum[(j-1)! b[n-j, ReverseSort[ Append[l, j]][[1 ;; 2]]] Binomial[n - 1, j - 1], {j, 1, n}]];

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

%t a /@ Range[2, 23] (* _Jean-François Alcover_, Mar 01 2020, after _Alois P. Heinz_ *)

%Y Column k=2 of A322384.

%Y Cf. A349979.

%K nonn

%O 2,2

%A _Alois P. Heinz_, Feb 26 2020

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 August 16 04:49 EDT 2024. Contains 375173 sequences. (Running on oeis4.)