The world is full of surprises. The iterators in Table and Sum are of the form { i, imin, imax } and obviously it is assumed, that strictly imax > imin. Entries not fullfilling this conditions seem to be suppressed. That is most important in tables and sums with e.g. two indices, one being a function of the other.
Look at
In[55]:= Table[{i, j}, {i, 2, 9}, {j, 0, 5 - i}]
Out[55]= {{{2, 0}, {2, 1}, {2, 2}, {2, 3}}, {{3, 0}, {3, 1}, {3,
2}}, {{4, 0}, {4, 1}}, {{5, 0}}, {}, {}, {}, {}}
with four “empty” results.
What I expected was
In[56]:= tt =
Flatten[Table[{i, j}, {i, 2, 9}, {j, Min[0, 5 - i], Max[0, 5 - i]}],
1]
Out[56]= {{2, 0}, {2, 1}, {2, 2}, {2, 3}, {3, 0}, {3, 1}, {3, 2}, {4,
0}, {4, 1}, {5, 0}, {6, -1}, {6, 0}, {7, -2}, {7, -1}, {7,
0}, {8, -3}, {8, -2}, {8, -1}, {8,
0}, {9, -4}, {9, -3}, {9, -2}, {9, -1}, {9, 0}}
Accordingly double-sums have to be considered with caution. Change Table to Sum:
In[64]:= Sum[{i, j}, {i, 2, 9}, {j, 0, 5 - i}]
Out[64]= {30, 10}
while the correct result should read
In[58]:= Total[tt]
Out[58]= {140, -10}