OFFSET
1,2
LINKS
Andrew Howroyd, Table of n, a(n) for n = 1..500
Index entries for linear recurrences with constant coefficients, signature (13,-74,243,-506,668,-444,-217,903,-1018,416,384,-712,418,57,-262,160,7,-60,27,4,-8,1,1).
FORMULA
G.f.: x*(1 + 3*x - 26*x^2 + 68*x^3 - 174*x^4 + 269*x^5 + 113*x^6 - 963*x^7 + 977*x^8 + 253*x^9 - 778*x^10 + 466*x^11 - 275*x^12 - 263*x^13 + 307*x^14 - 176*x^15 - 15*x^16 + 171*x^17 - 63*x^18 - 59*x^19 + 4*x^20 - 3*x^21 + x^22 + 2*x^23)/((1 - x)^4*(1 - x - x^2)*(1 - 2*x - x^4)*(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.1.1.1...1.1.1.1...1.1.1.1...1.1.1.1...0.0.0.0...0.0.0.1...1.0.0.0
...0.0.0.0...0.0.0.1...1.0.0.0...1.0.0.1...1.1.1.1...1.1.1.1...1.1.1.1
------
...1.0.0.1...1.1.0.0...1.1.0.1...1.1.1.0...1.1.1.0...0.0.1.1...1.0.1.1
...1.1.1.1...0.1.1.1...0.1.1.1...0.0.1.1...1.0.1.1...1.1.1.0...1.1.1.0
------
...0.1.1.1...0.1.1.1
...1.1.0.0...1.1.0.1
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
R. H. Hardin, Aug 03 2009
EXTENSIONS
a(18) onward from Andrew Howroyd, Dec 22 2025
STATUS
approved
