(defn sum [n] (* n (inc n) 1/2))

(print (sum 1000))