OFFSET
1,1
LINKS
R. H. Hardin, Table of n, a(n) for n = 1..210
Index entries for linear recurrences with constant coefficients, signature (4,-4,-1,2).
FORMULA
a(n) = 4*a(n-1) - 4*a(n-2) - a(n-3) + 2*a(n-4).
G.f.: x*(45 - 109*x + 8*x^2 + 64*x^3) / ((1 - x)*(1 - 2*x)*(1 - x - x^2)). - Colin Barker, Dec 24 2018
a(n) = 2^(n+1)+8+11*A000045(n+3). - R. J. Mathar, Oct 09 2020
EXAMPLE
Some solutions for n=4:
..1..1..1..1..1....1..1..1..1..0....0..1..0..0..1....0..1..0..1..1
..0..0..0..0..0....0..0..0..0..1....0..1..0..0..1....1..0..1..0..0
..1..1..1..1..1....0..0..0..0..1....0..1..0..0..1....1..0..1..0..0
..0..0..0..0..0....0..0..0..0..1....0..1..0..0..1....0..1..0..1..1
..1..1..1..1..1....0..0..0..0..1....0..1..0..0..1....1..0..1..0..0
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
R. H. Hardin, Jun 21 2015
STATUS
approved