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!)
A317328 Total number of distinct run lengths summed over all permutations of [n] with exactly k distinct lengths of increasing runs. 2
0, 1, 2, 10, 41, 238, 1560, 11822, 99884, 944951, 9851550, 112297557, 1389182296, 18548151140, 265854443194, 4071965025912, 66379311227650, 1147606112273168, 20974771814051529, 404111977603746584, 8186206878478673819, 173948483818885099616, 3868878742247603336434, 89892706223315981903289 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
FORMULA
a(n) = Sum_{k=0..floor((sqrt(1+8*n)-1)/2)} k * A317327(n,k).
MAPLE
b:= proc(u, o, t, s) option remember;
`if`(u+o=0, x^(nops(s union {t})-1),
add(b(u-j, o+j-1, 1, s union {t}), j=1..u)+
add(b(u+j-1, o-j, t+1, s), j=1..o))
end:
a:= n-> (p-> add(coeff(p, x, i)*i, i=0..degree(p)))(b(n, 0$2, {})):
seq(a(n), n=0..16);
MATHEMATICA
b[u_, o_, t_, s_] := b[u, o, t, s] =
If[u + o == 0, x^(Length[s ~Union~ {t}] - 1),
Sum[b[u - j, o + j - 1, 1, s ~Union~ {t}], {j, 1, u}] +
Sum[b[u + j - 1, o - j, t + 1, s], {j, 1, o}]];
a[n_] := Function[p, Sum[Coefficient[p, x, i]*i, {i, 0, Exponent[p, x]}]][
b[n, 0, 0, {}]];
Table[a[n], {n, 0, 16}] (* Jean-François Alcover, Apr 15 2022, after Alois P. Heinz *)
CROSSREFS
Cf. A317327.
Sequence in context: A297047 A037561 A135512 * A368678 A083937 A085224
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Jul 25 2018
STATUS
approved

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 April 25 12:53 EDT 2024. Contains 371969 sequences. (Running on oeis4.)