sum from i=1 to N of i