OFFSET
2,5
COMMENTS
EXAMPLE
T[8,3]=4 because of the 5 bracelets {1,1,1,0,0,0,0,0}, {0,0,0,0,1,0,1,1}, {0,0,0,1,0,0,1,1},{0,0,0,1,0,1,0,1} and {0,0,1,0,0,1,0,1}, the third and the fourth have equal absolute vector sums, length 1.
Table starts as:
1;
1,1;
1,2,1;
1,2,2,1;
...
MATHEMATICA
Needs[DiscreteMath`NewCombinatorica`]; f[bi_]:=DeleteCases[bi*Range[Length[bi]], 0]; vec[li_, l_]:= Abs[Plus@@ N[Exp[2*Pi*I*f[li]/l], 24]]; Table[Length[Union[(vec[ #, n]&)/@ ListNecklaces[n, Join[1+0*Range[i], 0*Range[n-i]], Dihedral], SameTest->(Abs[ #1-#2]<10^-18&)]], {n, 2, 16}, {i, 1, n-1}]
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Wouter Meeussen, Feb 12 2005
STATUS
approved