OFFSET
1,1
LINKS
Andrew Howroyd, Table of n, a(n) for n = 1..1000 (terms 1..57 from R. H. Hardin)
Index entries for linear recurrences with constant coefficients, signature (4,-5,2,1,-2,1).
FORMULA
Empirical: a(n) = 4*a(n-1) - 5*a(n-2) + 2*a(n-3) + a(n-4) - 2*a(n-5) + a(n-6) for n>=10.
Empirical g.f.: x*(3 - x - x^2 + x^4 + 5*x^6 - x^7 - 2*x^8) / ((1 - x)^2*(1 - 2*x - x^4)). - Colin Barker, Feb 22 2018
Formulas confirmed using the transfer matrix method. - Andrew Howroyd, Dec 24 2025
EXAMPLE
All solutions for n=2:
...0.0.1...0.1.1...0.0.1...0.1.1...1.1.1...0.0.1...1.1.1...0.1.0...1.1.0
...0.0.1...0.0.1...0.1.1...0.1.1...0.0.1...1.1.1...1.0.1...0.1.1...0.1.1
------
...1.0.0...1.0.1
...1.1.1...1.1.1
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
R. H. Hardin, Aug 03 2009
STATUS
approved
