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 (4,-5,1,2,-1).
FORMULA
Empirical: a(n) = 4*a(n-1) - 5*a(n-2) + a(n-3) + 2*a(n-4) - a(n-5).
From R. J. Mathar, Aug 11 2009: (Start)
Empirical: a(n) = A006355(n+7) - n^2 - 7*n - 17.
Empirical g.f.: x*(1+3*x-2*x^2+x^4-x^3)/((x^2+x-1)*(x-1)^3). (End)
Formulas confirmed using the transfer matrix method. - Andrew Howroyd, Dec 24 2025
EXAMPLE
All solutions for n=3
...1.1...1.1...1.1...1.1...1.1...0.0...0.0...0.0...0.0...1.0...0.0...0.0...0.1
...0.0...0.1...1.0...1.1...1.0...0.0...0.1...1.0...1.1...1.0...1.1...1.1...1.1
...0.0...0.0...0.0...0.0...1.0...1.1...1.1...1.1...1.1...1.1...0.0...0.1...0.0
------
...0.0...0.1...1.0...1.0...1.1...1.1...0.1...1.1
...1.1...1.1...1.1...1.1...0.1...1.0...0.1...0.1
...1.0...1.0...0.0...0.1...0.1...1.1...1.1...1.1
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
R. H. Hardin, Aug 03 2009
STATUS
approved
