|
|
A269531
|
|
Number of length-n 0..2 arrays with no repeated value differing from the previous repeated value by other than one.
|
|
1
|
|
|
3, 9, 24, 64, 164, 418, 1048, 2614, 6468, 15942, 39120, 95734, 233660, 569230, 1384408, 3362686, 8158932, 19778982, 47913504, 115999462, 280698860, 678970558, 1641785704, 3968834446, 9592037508, 23178077334, 55998523824, 135275792374
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
FORMULA
|
Empirical: a(n) = 4*a(n-1) - a(n-2) - 10*a(n-3) + 6*a(n-4) + 4*a(n-5).
Empirical g.f.: x*(3 - 3*x - 9*x^2 + 7*x^3 + 4*x^4) / ((1 - 2*x)*(1 - 2*x - x^2)*(1 - 2*x^2)). - Colin Barker, Jan 23 2019
|
|
EXAMPLE
|
Some solutions for n=9:
..1. .0. .0. .0. .1. .0. .2. .0. .1. .0. .0. .2. .0. .0. .0. .1
..0. .1. .2. .2. .1. .2. .1. .2. .0. .1. .0. .0. .1. .2. .2. .1
..1. .2. .0. .0. .0. .0. .2. .0. .1. .0. .2. .0. .2. .0. .0. .2
..1. .0. .2. .2. .2. .2. .0. .1. .0. .1. .1. .1. .1. .0. .1. .1
..0. .0. .2. .1. .1. .2. .0. .0. .0. .0. .1. .2. .0. .2. .1. .0
..0. .1. .0. .2. .2. .1. .2. .1. .2. .2. .0. .1. .1. .0. .0. .2
..2. .1. .2. .1. .0. .2. .1. .0. .1. .0. .2. .0. .2. .2. .1. .1
..1. .0. .1. .0. .2. .1. .1. .1. .0. .1. .2. .2. .0. .0. .0. .0
..0. .1. .0. .1. .1. .2. .0. .0. .1. .2. .0. .1. .1. .1. .1. .1
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|