Find the sum of the numbers from 1 to 300 inclusive

consider the arithmetic sequence with

a = 1
d = 1
S300 = 300/2 (1+300)