OFFSET
0,2
COMMENTS
G.f. for number of ways to spin a dreidel n times without having a run of length 4 of any of gimel, heh, nun or shin.
More generally, fix an alphabet of size M and consider the number of words of length n which do not contain M consecutive equal letters. The present sequence is the case M = 4.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
J. Noonan and D. Zeilberger, The Goulden-Jackson cluster method: extensions, applications and implementations
Doron Zeilberger, Webpage of the paper `The Goulden-Jacskon Cluster Method: Extensions, Applications and Implementations', by John Noonan and Doron Zeilberger; Local copy, pdf file only, no active links
Index entries for linear recurrences with constant coefficients, signature (3, 3, 3).
MAPLE
# First download the Maple package DAVID_IAN from the Zeilberger web site
read(DAVID_IAN);
M:=4;
lis1:={}; for i from 1 to M do lis1:={op(lis1), x[i]}; od:
lis2:={}; for i from 1 to M do t1:=[]; for j from 1 to M do t1:=[op(t1), x[i]]; od: lis2:={op(lis2), t1}; od:
GJs(lis1, lis2, x);
MATHEMATICA
CoefficientList[Series[(1+x+x^2+x^3)/(1-3x-3x^2-3x^3), {x, 0, 30}], x] (* Harvey P. Dale, Apr 16 2011 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Apr 08 2011
STATUS
approved