Question: Sum vs expanded form

Please check this:

N:=3;

sum1 := lcm(N, 0)+lcm(N, 1)+lcm(N, 2)+lcm(N, 3);

sum2 := sum(lcm(N, k), k = 0 .. N);

 

Why is sum2 wrong?

 

Regards,

César Lozada

 

Please Wait...