|
|
A228797
|
|
Number of 2 X n binary arrays with top left element equal to 1 and no two ones adjacent horizontally or nw-se.
|
|
1
|
|
|
2, 2, 8, 16, 42, 98, 240, 576, 1394, 3362, 8120, 19600, 47322, 114242, 275808, 665856, 1607522, 3880898, 9369320, 22619536, 54608394, 131836322, 318281040, 768398400, 1855077842, 4478554082, 10812186008, 26102926096, 63018038202, 152139002498
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
FORMULA
|
Empirical: a(n) = a(n-1) + 3*a(n-2) + a(n-3).
G.f.: 2*x / ((1 + x)*(1 - 2*x - x^2)).
a(n) = (-2*(-1)^n + (1-sqrt(2))^n + (1+sqrt(2))^n) / 2.
(End)
|
|
EXAMPLE
|
Some solutions for n=4:
..1..0..0..1....1..0..0..1....1..0..0..0....1..0..0..1....1..0..0..1
..0..0..0..0....0..0..1..0....0..0..0..1....1..0..1..0....0..0..0..1
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|