Answer:
287
Explanation:
Sum of A Finite Arithmetic Sequnece is

Where a1 is first term
an is final term
N is the number of terms.
We know a1 is 1
An is 40 but we don't know n.
To find n, we use the definition of a Arithmetic Sequence

where d is the common difference. Let use the final term, 40 as a example.
Here the common difference is 3 so we have




So we have 14 terms in this finite series.
Now we compute

So the answer is 287