OFFSET
0,2
COMMENTS
Number of words of length n over an alphabet of size 7 which do not contain any strictly decreasing factor (consecutive subword) of length 3.
Number of 0..6 arrays x(0..n-1) of n elements without any two consecutive increases.
LINKS
R. H. Hardin and N. J. Sloane, Table of n, a(n) for n = 0..249 [The first 210 terms were computed by R. H. Hardin]
A. Burstein and T. Mansour, Words restricted by 3-letter generalized multipermutation patterns, Annals. Combin., 7 (2003), 1-14. See Th. 3.13.
Index entries for linear recurrences with constant coefficients, signature (7, 0, -35, 35, 0, -7, 1).
FORMULA
a(n) = 7*a(n-1) - 35*a(n-3) + 35*a(n-4) - 7*a(n-6) + a(n-7).
EXAMPLE
Some solutions for n=5
..6....2....6....3....4....4....6....6....5....3....2....4....5....0....5....5
..4....5....0....4....1....6....4....5....1....1....2....6....6....6....3....6
..4....4....0....4....5....3....5....5....5....1....5....3....3....6....4....2
..3....6....2....5....5....2....2....4....5....5....3....3....2....1....4....5
..4....5....0....3....1....0....4....3....5....5....2....1....0....0....5....3
MATHEMATICA
CoefficientList[Series[1/(1-7x+35x^3-35x^4+7x^6-x^7), {x, 0, 30}], x] (* or *) LinearRecurrence[{7, 0, -35, 35, 0, -7, 1}, {1, 7, 49, 308, 1946, 12152, 75992}, 30] (* Harvey P. Dale, Jul 23 2014 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
R. H. Hardin Nov 22 2011
EXTENSIONS
Edited by N. J. A. Sloane, May 21 2013
STATUS
approved