|
|
A269659
|
|
Number of length-6 0..n arrays with no adjacent pair x,x+1 repeated.
|
|
2
|
|
|
42, 626, 3816, 15036, 45590, 115902, 259476, 527576, 994626, 1764330, 2976512, 4814676, 7514286, 11371766, 16754220, 24109872, 33979226, 47006946, 63954456, 85713260, 113318982, 147966126, 191023556, 244050696, 308814450, 387306842
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
FORMULA
|
Empirical: a(n) = n^6 + 6*n^5 + 15*n^4 + 14*n^3 + 3*n^2 + 3*n.
G.f.: 2*x*(21 + 166*x + 158*x^2 + 17*x^4 - 2*x^5) / (1 - x)^7.
a(n) = 7*a(n-1) - 21*a(n-2) + 35*a(n-3) - 35*a(n-4) + 21*a(n-5) - 7*a(n-6) + a(n-7) for n>7.
(End)
|
|
EXAMPLE
|
Some solutions for n=3:
..1. .3. .3. .1. .2. .0. .1. .2. .2. .0. .3. .2. .2. .0. .2. .2
..1. .0. .3. .0. .2. .0. .1. .3. .2. .0. .2. .0. .1. .3. .1. .0
..1. .2. .0. .0. .2. .2. .2. .0. .0. .0. .0. .3. .0. .2. .0. .2
..2. .0. .1. .3. .2. .0. .3. .1. .2. .2. .1. .3. .0. .2. .2. .0
..1. .0. .2. .0. .0. .3. .0. .1. .0. .2. .0. .1. .1. .0. .1. .1
..3. .1. .2. .1. .2. .2. .0. .1. .3. .0. .2. .3. .2. .0. .2. .3
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|