|
|
A274110
|
|
Number of equivalence classes of ballot paths of length n for the string uu.
|
|
8
|
|
|
1, 2, 3, 5, 8, 14, 24, 42, 73, 128, 224, 393, 689, 1209, 2121, 3722, 6531, 11461, 20112, 35294, 61936, 108690, 190737, 334720, 587392, 1030801, 1808929, 3174449, 5570769, 9776018, 17155715, 30106181, 52832664, 92714862, 162703240, 285524282, 501060185, 879299328, 1543062752, 2707886361
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
LINKS
|
|
|
FORMULA
|
G.f.: x*(1-x^2-x^4) / ( (x-1)*(1+x)*(x^3-x^2+2*x-1) ). - R. J. Mathar, Jun 20 2016
|
|
MATHEMATICA
|
CoefficientList[Series[(1 - x^2 - x^4) / ((x - 1) (1 + x) (x^3 - x^2 + 2 x - 1)), {x, 0, 40}], x] (* Vincenzo Librandi, Aug 18 2016 *)
|
|
PROG
|
(PARI) apply( {A274110(n)=(matcompanion(x^5-2*x^4+x^2-x+1)^n)[5, 3]+1}, [1..44]) \\ M. F. Hasler, Jun 22 2021
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|