OFFSET
1,2
LINKS
R. H. Hardin, Table of n, a(n) for n = 1..210
Index entries for linear recurrences with constant coefficients, signature (3,1,7,6).
FORMULA
Empirical: a(n) = 3*a(n-1) +a(n-2) +7*a(n-3) +6*a(n-4).
From Andrew Howroyd, Jul 17 2026: (Start)
The above empirical formula confirmed using the transfer matrix method.
G.f.: x*(1 + x)^2*(1 + 6*x)/(1 - 3*x - x^2 - 7*x^3 - 6*x^4). (End)
EXAMPLE
Some solutions for n=3:
..1..1..1....1..1..0....0..1..1....1..0..1....1..1..1....0..1..1....1..1..0
..1..0..0....1..0..1....0..0..0....0..1..0....0..1..0....1..0..0....1..1..0
MATHEMATICA
LinearRecurrence[{3, 1, 7, 6}, {1, 11, 47, 165}, 30] (* Paolo Xausa, Jul 18 2026 *)
PROG
(PARI) Vec(x*(1 + x)^2*(1 + 6*x)/(1 - 3*x - x^2 - 7*x^3 - 6*x^4) + O(x^26)) \\ Andrew Howroyd, Jul 17 2026
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
R. H. Hardin, Nov 11 2012
EXTENSIONS
New name from Andrew Howroyd, Jul 15 2026
STATUS
approved
