Question: Possible bug in nested summation/multiplication-operators

Hi, I'm new to Maple.

when nesting some multiplications in a summation operator, I get results that I can't figure out.

I've entered 4 formulas that should give the same result, if I understood things correctly. The formula FB gives me problems; am I doing something wrong, or is there a bug in Maple? The problem arose in a more complicated formula, but I trimmed the formula down to a minimum, in order to illustrate the discrepancy.

I hope someone can shed some light on this, because I'm stuck.

Is this a bug (the correct answer = 2)?

 

restart

 

FA := modp(5, product(2, t = 0 .. modp(1-1, 3)))+modp(5, product(2, t = 0 .. modp(2-1, 3))); FB := sum(modp(5, product(2, t = 0 .. modp(q-1, 3))), q = 1 .. 2)

10

(1)

FC := modp(5, product(2, t = 0 .. modp(0, 3)))+modp(5, product(2, t = 0 .. modp(1, 3))); FD := sum(modp(5, product(2, t = 0 .. modp(q, 3))), q = 0 .. 1)

2

(2)

NULL

FA := modp(5, product(2, t = 0 .. modp(1 - 1, 3))) + modp(5, product(2, t = 0 .. modp(2 - 1, 3)));

2

(3)

 

FB := sum(modp(5, product(2, t = 0 .. modp(q - 1, 3))), q = 1 .. 2);

10

(4)

 

FC := modp(5, product(2, t = 0 .. modp(0, 3))) + modp(5, product(2, t = 0 .. modp(1, 3)));

2

(5)

NULL

FD := sum(modp(5, product(2, t = 0 .. modp(q, 3))), q = 0 .. 1);

2

(6)

NULL

Download BugTestSimple.mw

Please Wait...