Loop Invariant
This loop invariant was really hard. The functions sums , basically doing .
As c = c + 1 in the loop body, we work with c - 1.
Therefore our Loop Invariant was which is minus the gaussian summation of .
This loop invariant was really hard. The functions sums , basically doing .
As c = c + 1 in the loop body, we work with c - 1.
Therefore our Loop Invariant was which is minus the gaussian summation of .