Sum 1...n

basic

1+2+...+n

Formula

n(n+1)/2