Given:
In an arithmetic sequence,


To find:
The sum of the first 335 terms in the given sequence.
Solution:
The recursive formula of an arithmetic sequence is:
...(i)
Where, d is the common difference.
We have,
...(ii)
On comparing (i) and (ii), we get

The sum of first i terms of an arithmetic sequence is:
![S_i=(i)/(2)[2a+(i-1)d]](https://img.qammunity.org/2022/formulas/mathematics/college/75ruifcw3lg9ki19hh7sun8bncdy9bkb2b.png)
Putting
, we get
![S_(335)=(335)/(2)[2(2)+(335-1)(-3)]](https://img.qammunity.org/2022/formulas/mathematics/college/j639ux2qhdjecv6353dlmx8u19zpiom7sk.png)
![S_(335)=(335)/(2)[4+(334)(-3)]](https://img.qammunity.org/2022/formulas/mathematics/college/qc51kgw7gcdr8dlrs1hmd2kt10qh3n5cbo.png)
![S_(335)=(335)/(2)[4-1002]](https://img.qammunity.org/2022/formulas/mathematics/college/4yd7yxy47arpdylcskeqdbgg3bk5q8z2d7.png)

On further simplification, we get


Therefore, the sum of the first 335 terms in the given sequence is -167165.