If I understand the problem correctly, the answer is all numbers from 1 to m*n, because if one sum is possible then the sum one smaller is possible too because you can always chose a number in a term one smaller, and the largest sum possible is having all the m terms equal to n.
Bookmarks