|
|
A264910
|
|
Number of 5-ascent sequences of length n with no consecutive repeated letters.
|
|
2
|
|
|
1, 1, 5, 30, 195, 1380, 10555, 86815, 764350, 7174420, 71532369, 755136887, 8415519048, 98744576456, 1216948265335, 15718032335081, 212330461568282, 2994374695258034, 44008250794756373, 672986694107199687, 10692604102273015636, 176266660430175342285
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,3
|
|
LINKS
|
|
|
MAPLE
|
b:= proc(n, i, t) option remember; `if`(n<1, 1, add(
`if`(j=i, 0, b(n-1, j, t+`if`(j>i, 1, 0))), j=0..t+5))
end:
a:= n-> (b(n-1, 0$2)):
seq(a(n), n=0..30);
|
|
MATHEMATICA
|
b[n_, i_, t_] := b[n, i, t] = If[n<1, 1, Sum[If[j==i, 0, b[n-1, j, t + If[j>i, 1, 0]]], {j, 0, t+5}]];
a[n_] := b[n-1, 0, 0];
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|