You should know certain sums by heart, for example:

Sum of constants

Sum of

Sum of

Sum of

In a for loop where the inner loop depends on the outer:

Sum of

Sum of

Sum of

Sum of

Sum of

Sum of

Logarithmic sums

Sum of

Sum of