sum(1) i=1 to n