Question: Trouble with Nested Loops

 

I am having trouble with the following sum not adding properly:

sum(sum(sum(1/k!/j!/m!,k=2-m-j..2-m-j),j=0..2-m),m=0..2);

By my hand calculations, this should be 4 (?), but maple says it is zero. If we remove a factorial (like below) we will get a non zero sum. What am I doing wrong,or is this a bug in maple?

sum(sum(sum(1/k!/j!,k=2-m-j..2-m-j),j=0..2-m),m=0..2);

thanks.

Please Wait...