|
|
A259216
|
|
Number of (n+1) X (2+1) 0..1 arrays with each 2 X 2 subblock having clockwise pattern 0000 0011 or 0101.
|
|
2
|
|
|
13, 23, 40, 71, 127, 230, 421, 779, 1456, 2747, 5227, 10022, 19345, 37559, 73288, 143615, 282439, 557126, 1101709, 2183123, 4333408, 8613683, 17141395, 34143686, 68062297, 135760415, 270931576, 540909719, 1080276751, 2158057382, 4312075957
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
FORMULA
|
a(n) = 3*a(n-1) - a(n-2) - 2*a(n-3).
G.f.: x*(13 - 16*x - 16*x^2) / ((1 - 2*x)*(1 - x - x^2)).
a(n) = 2^(1+n) + (3*2^(-n)*((1-sqrt(5))^n*(-2+sqrt(5)) + (1+sqrt(5))^n*(2+sqrt(5)))) / sqrt(5).
(End)
|
|
EXAMPLE
|
Some solutions for n=4:
..0..1..0....1..0..1....1..0..1....0..1..0....0..1..0....1..1..1....1..0..1
..1..0..1....0..1..0....1..0..1....1..0..1....1..0..1....0..0..0....1..0..1
..0..1..0....1..0..1....0..1..0....1..0..1....0..1..0....0..0..0....0..1..0
..1..0..1....0..1..0....0..1..0....1..0..1....0..1..0....0..0..0....0..1..0
..0..1..0....1..0..1....0..1..0....0..1..0....1..0..1....1..1..1....1..0..1
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|