OFFSET
0,3
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..1000 (terms n = 1..210 from R. H. Hardin)
Index entries for linear recurrences with constant coefficients, signature (4,-4,4,-4).
FORMULA
a(n) = 4*a(n-1) -4*a(n-2) +4*a(n-3) -4*a(n-4).
G.f.: -(x-1)*(2*x^2-2*x+1) / (1 - 4*x + 4*x^2 - 4*x^3 + 4*x^4). - Colin Barker, Jun 02 2018
EXAMPLE
Some solutions for n=5:
..1..1....0..0....1..1....1..0....0..1....1..0....1..0....1..1....1..0....1..1
..0..1....0..0....1..1....1..0....0..1....1..1....1..0....0..1....1..1....1..1
..0..0....1..0....0..0....1..1....0..1....1..1....1..0....1..1....0..0....0..1
..1..1....1..1....1..0....0..1....1..1....0..1....1..0....1..1....1..1....1..1
..1..1....0..1....1..1....0..0....1..1....0..0....1..1....0..1....1..1....1..1
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
R. H. Hardin, Dec 25 2011
EXTENSIONS
a(0)=1 prepended by Alois P. Heinz, Mar 14 2026
STATUS
approved
