login
A073951
Number of strings over Z_3 of length n with trace 1 and subtrace 1.
5
0, 1, 3, 6, 21, 81, 252, 729, 2187, 6642, 19845, 59049, 176904, 531441, 1594323, 4780782, 14344533, 43046721, 129146724, 387420489, 1162261467, 3486843450, 10460471301, 31381059609, 94143001680, 282429536481, 847288609443, 2541864234006, 7625594296341
OFFSET
1,3
COMMENTS
Same as number of strings over Z_3 of length n with trace 2 and subtrace 1. Same as number of strings over GF(3) of length n with trace 1 and subtrace 1. Same as number of strings over GF(3) of length n with trace 2 and subtrace 1.
FORMULA
a(n; t, s) = a(n-1; t, s) + a(n-1; t+2, s+2t+1) + a(n-1; t+1, s+t+1) where t is the trace and s is the subtrace.
G.f.: q^2(3*q^3+3*q^2-3*q+1)/[(1-3q)(1+3q^2)(1-3q+3q^2)]. - Lawrence Sze, Oct 24 2004
EXAMPLE
a(2;2,1)=1 since the one ternary string of trace 2, subtrace 1 and length 2 is { 11 }.
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Frank Ruskey and Nate Kube, Aug 15 2002
EXTENSIONS
Terms a(21) onward from Max Alekseyev, Apr 09 2013
STATUS
approved