OFFSET
1,2
LINKS
R. H. Hardin, Table of n, a(n) for n=1..100
Index entries for linear recurrences with constant coefficients, signature (2,-1,0,1).
FORMULA
Empirical: a(n) = 2*a(n-1) - a(n-2) + a(n-4) for n >= 7.
From R. J. Mathar, Aug 11 2009: (Start)
Empirical: G.f.: x*(-x^3-x^4+x^5-x-1)/((x^2-x+1)*(x^2+x-1)).
Formulas confirmed using the transfer matrix method. - Andrew Howroyd, Dec 24 2025
EXAMPLE
All solutions for n=5:
...1.0...1.0...1.1...1.1...1.0...1.1...1.0...1.1...1.0...1.0...1.1...1.1...1.1
...1.0...1.0...1.0...1.0...1.0...1.0...1.0...1.0...1.1...1.1...0.1...0.1...0.1
...1.1...1.1...1.1...1.1...1.0...1.0...1.0...1.0...0.1...0.1...0.1...0.1...1.1
...0.1...0.1...0.1...0.1...1.0...1.0...1.1...1.1...0.1...0.1...0.1...0.1...1.0
...0.1...1.1...0.1...1.1...1.1...1.1...0.1...0.1...0.1...1.1...0.1...1.1...1.1
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
R. H. Hardin, Aug 03 2009
STATUS
approved
