|
|
A152509
|
|
1/30 of the number of permutations of 5 indistinguishable copies of 1..n with exactly 2 local maxima.
|
|
5
|
|
|
0, 2, 139, 8036, 452068, 25331360, 1418668912, 79446252224, 4448995583296, 249143789616128, 13952052465406720, 781314939695363072, 43753636633642845184, 2450203651553656365056, 137211404487455350386688, 7683838651300399095726080, 430294964472840921667551232
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
LINKS
|
|
|
FORMULA
|
a(n) = (23*56^(n-1) - 23*6^(n-1) - 25*(n-1)*6^(n-1))/500. - Andrew Howroyd, May 10 2020
G.f.: x^2*(2 + 3*x) / ((1 - 6*x)^2*(1 - 56*x)).
a(n) = 68*a(n-1) - 708*a(n-2) + 2016*a(n-3) for n>3.
(End)
|
|
MATHEMATICA
|
LinearRecurrence[{68, -708, 2016}, {0, 2, 139}, 20] (* Harvey P. Dale, Feb 03 2022 *)
|
|
PROG
|
(PARI) a(n) = {(23*56^(n-1) - 23*6^(n-1) - 25*(n-1)*6^(n-1))/500} \\ Andrew Howroyd, May 10 2020
(PARI) concat(0, Vec(x^2*(2 + 3*x) / ((1 - 6*x)^2*(1 - 56*x)) + O(x^20))) \\ Colin Barker, Jul 16 2020
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|