OFFSET
1,1
LINKS
Robert Davis, Sarah A. Nelson, T. Kyle Petersen, Bridget E. Tenner, The pinnacle set of a permutation, arXiv:1704.05494 [math.CO], 2017.
MATHEMATICA
b[n_] := b[n] = MaximalBy[Table[{d, d! (d+1)! 2^(n - 2d - 1) StirlingS2[n - d, d + 1]}, {d, 1, n/2}], Last][[All, 1]] // Min;
A285524 = Table[b[n], {n, 4, 1000}];
Position[If[Length[#] == 4, Join[{0}, Rest[#]], #]& /@ Split[A285524] // Flatten, 0] + 3 // Flatten (* Jean-François Alcover, Feb 23 2019 *)
PROG
(PARI) half(n) = if (n % 2, n\2, n/2 - 1);
a285524(n) = {v = vector(half(n), d, d!*(d + 1)!*(2^(n-2*d-1)*stirling(n-d, d+1, 2))); w = vecsort(v, , 1); w[#w]; }
lista(nn) = {v = vector(nn, n, a285524(n+3)); for (k=1, #v-4, if ((v[k] == v[k+1]) && (v[k] == v[k+2]) && (v[k] == v[k+3]), print1(k+3, ", ")); ); }
CROSSREFS
KEYWORD
nonn
AUTHOR
Michel Marcus, Apr 20 2017
EXTENSIONS
More terms from Jinyuan Wang, Feb 10 2020
STATUS
approved