3 ms·
It's f(x) = (x0 + xn) * n/2 Where x0 - is the first element (here: 1) xn - last element (here: 3000) n - number of elements (here 3000) That makes it: $4,501,
by mazak 13y ago
It's f(x) = (x0 + xn) * n/2
Where
x0 - is the first element (here: 1)
xn - last element (here: 3000)
n - number of elements (here 3000)
That makes it: $4,501,500