OFFSET
1,2
LINKS
Andrew Howroyd, Table of n, a(n) for n = 1..500
Index entries for linear recurrences with constant coefficients, signature (10,-45,120,-200, 180,24,-328,471, -260,-168,440,-320, -12,234,-172,14, 86,-45,4,24, -2,1,4,1).
FORMULA
G.f.: x*(1 - 2*x + 4*x^2 - 18*x^3 + 64*x^4 - 115*x^5 + 158*x^6 - 169*x^7 + 221*x^8 + 40*x^9 - 484*x^10 + 673*x^11 - 204*x^12 - 323*x^13 + 451*x^14 - 438*x^15 + 22*x^16 + 297*x^17 - 366*x^18 - 74*x^19 + 58*x^20 - 166*x^21 - 79*x^22 - 4*x^23 - 12*x^24 - x^25 + 2*x^26)/((1 - x + x^3)^2*(1 - 2*x + x^2 - x^3 - x^4)^2*(1 - 2*x + 3*x^2 + x^5)*(1 - 2*x - x^2 - 2*x^4 - x^5)). - Andrew Howroyd, Dec 21 2025
EXAMPLE
All solutions for n=2
...1.0.0.0...1.0.0.1...1.1.0.0...1.1.0.1...1.1.1.0...1.1.1.0...1.1.1.1
...1.1.1.1...1.1.1.1...0.1.1.1...0.1.1.1...0.0.1.1...1.0.1.1...0.0.0.1
------
...1.1.1.1
...1.0.0.1
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
R. H. Hardin, Aug 03 2009
EXTENSIONS
a(24) onward from Andrew Howroyd, Dec 21 2025
STATUS
approved
