OFFSET
1,3
COMMENTS
Same as the number of strings of length n over GF(4) with trace x and subtrace 1. Same as the number of strings of length n over GF(4) with trace y and subtrace 1 where y = 1+x. Same as the number of strings of length n over GF(4) with trace 1 and subtrace y. Same as the number of strings of length n over GF(4) with trace x and subtrace x. Same as the number of strings of length n over GF(4) with trace y and subtrace y.
LINKS
Index entries for linear recurrences with constant coefficients, signature (6,-12,24,-32).
FORMULA
a(n; t, s) = a(n-1; t, s) + a(n-1; t-1, s-(t-1)) + a(n-1; t-2, s-2(t-2)) + a(n-1; t-3, s-3(t-3)) where t is the trace and s is the subtrace. Note that all operations involving operands t or s are carried out over GF(4).
G.f.: -(2*q-3)*q^3/[(1-2q)(1-4q)(1+4q^2)]. - Lawrence Sze, Oct 24 2004
a(n) = -2^(n-3) +( (-2i)^n + (2i)^n +4^n )/16 with i=sqrt(-1). - R. J. Mathar, Nov 18 2011
MATHEMATICA
LinearRecurrence[{6, -12, 24, -32}, {0, 0, 3, 16}, 30] (* Harvey P. Dale, Mar 12 2019 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Frank Ruskey and Nate Kube, Aug 16 2002
EXTENSIONS
More terms from Max Alekseyev, Apr 16 2013
STATUS
approved