%I #10 Sep 29 2023 07:59:58
%S 9,49,199,665,2059,6305,19171,58025,175099,527345,1586131,4766585,
%T 14316139,42981185,129009091,387158345,1161737179,3485735825,
%U 10458256051,31376865305,94134790219,282412759265,847255055011,2541798719465
%N Number of second differences of arrays of length n + 2 of numbers in 0..2.
%H R. H. Hardin, <a href="/A228212/b228212.txt">Table of n, a(n) for n = 1..210</a>
%F Empirical: a(n) = 5*a(n-1) -6*a(n-2) = A001047(n+2) for n>5.
%F Conjectures from _Colin Barker_, Sep 09 2018: (Start)
%F G.f.: x*(9 + 4*x + 8*x^2 - 36*x^3 - 72*x^4) / ((1 - 2*x)*(1 - 3*x)).
%F a(n) = 3^(2+n) - 2^(2+n) for n>3.
%F (End)
%e Some solutions for n=4:
%e ..3....3...-4....0....1....0...-3...-1...-2....4....0...-4....0....0....3....2
%e .-1...-2....3....3...-1...-2....2....0....4...-4....0....3...-2...-1....0...-1
%e .-1...-1....0...-3....0....1...-2....1...-2....4....1....0....0....0...-3....0
%e ..2....1...-2....2....0....1....0...-3...-2...-2...-3...-3....3...-1....3....1
%Y Column 2 of A228218.
%K nonn
%O 1,1
%A _R. H. Hardin_, Aug 16 2013