|
|
A269675
|
|
Number of length-n 0..5 arrays with no repeated value differing from the previous repeated value by other than plus or minus one modulo 5+1.
|
|
1
|
|
|
6, 36, 210, 1212, 6918, 39156, 220050, 1229292, 6832518, 37810116, 208443090, 1145318172, 6274749318, 34288099476, 186935018130, 1017053643852, 5523244077318, 29944773691236, 162103912681170, 876339613438332
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
FORMULA
|
Empirical: a(n) = 9*a(n-1) - 13*a(n-2) - 35*a(n-3).
G.f.: 6*x*(1 - 3*x - 6*x^2) / ((1 - 5*x)*(1 - 4*x - 7*x^2)).
a(n) = (-924*5^n + (660-195*sqrt(11))*(2-sqrt(11))^n + 15*(2+sqrt(11))^n*(44+13*sqrt(11))) / 385.
(End)
|
|
EXAMPLE
|
Some solutions for n=6:
..5. .1. .0. .0. .3. .1. .1. .5. .3. .0. .5. .1. .5. .1. .1. .4
..2. .0. .5. .5. .0. .1. .4. .3. .1. .3. .4. .4. .4. .4. .0. .3
..4. .3. .5. .0. .4. .5. .2. .3. .1. .3. .1. .5. .2. .5. .3. .5
..5. .1. .0. .2. .3. .1. .0. .5. .5. .5. .2. .3. .2. .1. .2. .3
..2. .4. .4. .4. .2. .2. .2. .0. .0. .2. .5. .5. .4. .0. .5. .1
..3. .4. .4. .3. .3. .5. .0. .3. .2. .0. .2. .3. .2. .1. .2. .2
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|