Maplestudent

5 Reputation

One Badge

2 years, 46 days

MaplePrimes Activity


These are questions asked by Maplestudent

sum2N := proc (N::integer) local summation, i, k; summation := 0; k := 0;

for i from 0 to N do if i = 1 then k := k+1

end if; summation := (i+k)^2 end do

end proc;
sum2N(10);

the result shows 121 but its not correct i think the right answer show be 2985
 

Page 1 of 1