sum i, i from 1 to n