OFFSET
1,3
COMMENTS
Left half of even rows of table A052307 with left column deleted.
FORMULA
(1/2)*(C(2*(n\2), m\2) +Sum (d|(2n, m) phi(d)C(2n/d, m/d) ) - (-1)^n if(even(n+m), 0, C(n-1, floor(m/2-1/2) ).
EXAMPLE
1; 1,2; 1,3,3; 1,4,5,8; 1,5,8,16,16; ...
MATHEMATICA
Table[Length[ Union[Last[Sort[Flatten[Table[{RotateLeft[ #, i], Reverse[RotateLeft[ #, i]]}, {i, 2k}], 1]]]& /@ Permutations[IntegerDigits[2^(2k-j) (2^j-1), 2]]] ], {k, 9}, {j, k}]
Table[( -(-1)^n If[EvenQ[m+n], 0, Binomial[n-1, Floor[(m-2)/2]] ]/2 + Fold[ #1+EulerPhi[ #2]Binomial[2n/#2, m/#2]/(2n)&, Binomial[2Floor[n/2], Floor[m/2]], Intersection[Divisors[2n], Divisors[m]]]/2), {n, 9}, {m, n}]
Table[ f[k, 2n], {n, 11}, {k, n}] // Flatten (* Robert G. Wilson v, Mar 29 2006 *)
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Wouter Meeussen, Aug 03 2002
STATUS
approved