OFFSET
1,1
LINKS
Andrew Howroyd, Table of n, a(n) for n = 1..500
Index entries for linear recurrences with constant coefficients, signature (6,-13,14,-7,-9,16,-8,2,11,1,3,4,1).
FORMULA
G.f.: x*(10 - 11*x - x^2 + 50*x^3 - 72*x^4 - 11*x^5 + 190*x^6 + 74*x^7 + 84*x^8 + 2*x^9 - 129*x^10 - 56*x^11 - 21*x^12 - 45*x^13 - 22*x^14 - 2*x^15)/((1 - 2*x + x^2 - x^3 - x^4)^2*(1 - 2*x - x^2 - 2*x^4 - x^5)). - Andrew Howroyd, Dec 22 2025
EXAMPLE
All solutions for n=2:
...1.0.0.0...1.0.0.0...1.1.0.0...1.1.0.0...1.1.1.0...0.0.1.0...0.0.1.0
...1.0.0.0...1.1.0.0...1.0.0.0...1.1.0.0...1.0.0.0...0.0.1.0...0.0.1.1
------
...0.0.1.0...0.0.1.1...0.0.1.1...0.0.1.1...0.1.1.0...0.1.1.0...0.1.1.0
...0.1.1.0...0.0.1.0...0.0.1.1...0.1.1.0...0.0.1.0...0.0.1.1...0.1.1.0
------
...1.1.1.0...1.1.1.0...0.1.0.0...0.1.0.0...0.1.0.0...0.1.1.0...0.1.1.0
...0.0.1.0...0.0.1.1...0.1.0.0...0.1.1.0...1.1.0.0...0.1.0.0...1.1.0.0
------
...1.1.0.0...1.1.0.0...0.1.1.1...0.1.1.1...0.0.0.1...0.0.0.1...0.0.1.1
...0.1.0.0...0.1.1.0...0.1.0.0...1.1.0.0...0.0.0.1...0.0.1.1...0.0.0.1
------
...0.1.1.1...1.0.0.0...1.1.1.0...1.1.1.1...0.0.1.0...0.0.1.1...0.1.1.1
...0.0.0.1...1.1.1.0...1.0.1.0...1.0.0.0...1.1.1.0...1.1.1.0...0.1.0.1
------
...1.1.1.1...0.1.1.1...1.1.1.0...1.1.1.1...0.1.0.0...1.1.0.0...0.0.0.1
...0.0.0.1...1.1.0.1...1.0.1.1...1.0.0.1...0.1.1.1...0.1.1.1...0.1.1.1
------
...1.0.0.0...1.0.1.0...1.0.1.1...0.1.0.1...1.1.0.1...0.0.0.1...1.0.0.1
...1.1.1.1...1.1.1.0...1.1.1.0...0.1.1.1...0.1.1.1...1.1.1.1...1.1.1.1
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
R. H. Hardin, Aug 03 2009
EXTENSIONS
a(19) onward from Andrew Howroyd, Dec 22 2025
STATUS
approved
