I'm working with this function
aExpl[G_,T_] := -2^(G - 2 T) Sum[(-1)^r (2 r - 1) Binomial[G,2 r] Sum[(-1/2)^j Binomial[r, G - T - j] Binomial[G - T - j,T], {j, G - T - r, G - 2 T}], {r, T, G/2}]
and I have no problems with it when written like this. Specifically, I get
aExpl[0,0] = 1
aExpl[1,0] = -1
aExpl[2,1] = 1
as you can check for yourself. I would like to have my sums evaluated and I tried to do that with and without specifying my conditions in more than one way. But whatever I do, the answer comes out as
((-1)^(1 + G - T) 2^(-1 + G) ((-1 + G - T) (-1 + 2 T) Binomial[G, 2 T] + (1 + T) (1 + 2 T) Binomial[G, 2 (1 + T)]) Gamma[-1 + G - T] Gamma[1/2 + T])/(Sqrt[\[Pi]] Gamma[G])
which obviously doesn't work for those three specific values. I tried redefining the function in parts, so that the above result holds for values that interest me and are defined (G>=2T && G>=3), along with setting problematic values explicitly.
aExpl[0,0]:=1
aExpl[1,0]:=-1
aExpl[2,1]:=1
This gives the correct result for all values, but the main reason why I have the function aExpl[G,T] in the first place is to sum it over Gs and Ts. But I can't do that, because Mathematica messes something up again. For Example aExpl[0,T] gives 0, which obviously isn't the case.
What in the world is going on here? :O