login
A219079
Number of 2 X n binary arrays with every 0 a horizontal, diagonal or antidiagonal neighbor to some 1.
3
1, 11, 47, 165, 625, 2435, 9367, 35901, 137865, 529675, 2034399, 7813333, 30009313, 115260115, 442689383, 1700273453, 6530386425, 25081819099, 96333894191, 369997847365, 1421082488529, 5458073486883, 20963291245879, 80515511728413, 309242835770473, 1187735498682283
OFFSET
1,2
FORMULA
Empirical: a(n) = 3*a(n-1) +a(n-2) +7*a(n-3) +6*a(n-4).
From Andrew Howroyd, Jul 17 2026: (Start)
The above empirical formula confirmed using the transfer matrix method.
G.f.: x*(1 + x)^2*(1 + 6*x)/(1 - 3*x - x^2 - 7*x^3 - 6*x^4). (End)
EXAMPLE
Some solutions for n=3:
..1..1..1....1..1..0....0..1..1....1..0..1....1..1..1....0..1..1....1..1..0
..1..0..0....1..0..1....0..0..0....0..1..0....0..1..0....1..0..0....1..1..0
MATHEMATICA
LinearRecurrence[{3, 1, 7, 6}, {1, 11, 47, 165}, 30] (* Paolo Xausa, Jul 18 2026 *)
PROG
(PARI) Vec(x*(1 + x)^2*(1 + 6*x)/(1 - 3*x - x^2 - 7*x^3 - 6*x^4) + O(x^26)) \\ Andrew Howroyd, Jul 17 2026
CROSSREFS
Row 2 of A219078.
Sequence in context: A178572 A036489 A076306 * A059323 A267614 A123984
KEYWORD
nonn,easy,changed
AUTHOR
R. H. Hardin, Nov 11 2012
EXTENSIONS
New name from Andrew Howroyd, Jul 15 2026
STATUS
approved