OFFSET
1,2
COMMENTS
Column 3 of A295205.
LINKS
R. H. Hardin, Table of n, a(n) for n = 1..210
Robert Israel, Maple-assisted proof of formula
Index entries for linear recurrences with constant coefficients, signature(2,-1,2,1,-2)
FORMULA
Empirical: a(n) = 2*a(n-1) -a(n-2) +2*a(n-3) +a(n-4) -2*a(n-5).
From Robert Israel, Nov 19 2017: (Start)
Empirical formula is true (see link).
G.f.: (x+x^2+3*x^3-x^4-2*x^5)/(1-2*x+x^2-2*x^3-x^4+2*x^5). (End)
EXAMPLE
Some solutions for n=7
..1..1..0. .0..0..0. .0..0..0. .0..1..1. .0..0..0. .1..1..1. .0..0..0
..1..1..0. .0..1..1. .1..1..0. .0..1..1. .1..1..0. .1..0..1. .0..0..0
..0..0..0. .1..1..1. .1..1..0. .0..0..0. .1..1..0. .1..0..1. .0..0..0
..0..1..1. .1..1..0. .0..0..0. .0..0..0. .0..0..0. .1..0..1. .0..0..0
..0..1..1. .0..0..0. .1..1..0. .0..0..0. .1..1..0. .1..0..1. .1..1..0
..0..0..0. .0..1..1. .1..1..0. .0..0..0. .1..1..1. .1..1..1. .1..1..1
..0..0..0. .0..1..1. .0..0..0. .0..0..0. .0..1..1. .0..0..0. .0..1..1
MAPLE
f:= gfun:-rectoproc({a(n) = 2*a(n-1) -a(n-2) +2*a(n-3) +a(n-4) -2*a(n-5), a(1)=1, a(2)=3, a(3)=8, a(4)=14, a(5)=25}, a(n), remember):
map(f, [$1..100]); # Robert Israel, Nov 19 2017
MATHEMATICA
LinearRecurrence[{2, -1, 2, 1, -2}, {1, 3, 8, 14, 25}, 32] (* Jean-François Alcover, Aug 27 2022 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
R. H. Hardin, Nov 16 2017
STATUS
approved