|
|
A183256
|
|
Number of nX1 binary arrays with the number of 0-1 adjacencies equal to the number of 0-0 adjacencies
|
|
1
|
|
|
2, 1, 3, 3, 7, 8, 17, 26, 55, 89, 170, 298, 585, 1059, 1988, 3640, 6943, 12990, 24469, 45663, 86454, 163324, 309092, 582651, 1103457, 2092206, 3971963, 7529743, 14293584, 27163872, 51678766, 98293571, 187034535, 356132703, 678651768
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
|
|
LINKS
|
|
|
FORMULA
|
a(n) = [x^n] f(n,x) where f(1,x) = 2*x, f(2,x) = x^3+x^2+2*x, and f(n,x) = (1-x^3)*f(n-2,x) + (x+x^2)*f(n-1,x) otherwise. - Robert Israel, Nov 13 2019
|
|
EXAMPLE
|
All solutions for 5X1
..0....0....1....1....0....1....0
..0....1....0....1....0....1....0
..1....0....0....1....1....1....0
..1....0....0....0....0....1....1
..1....0....1....0....0....1....0
|
|
MAPLE
|
fx:= proc(n) option remember; expand((1-x^3)*procname(n-2)+(x+x^2)*procname(n-1)) end proc:
fx(0):= 0: fx(1):= 2*x: fx(2):= x^3 + x^2 + 2*x:
|
|
MATHEMATICA
|
fx[n_] := fx[n] = Expand[(1-x^3)*fx[n-2] + (x+x^2)*fx[n-1]];
fx[0] = 0; fx[1] = 2x; fx[2] = x^3 + x^2 + 2x;
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|