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=\dfrac{i}{2}[2a+(i-1)d]](https://tex.z-dn.net/?f=S_i%3D%5Cdfrac%7Bi%7D%7B2%7D%5B2a%2B%28i-1%29d%5D)
Putting
, we get
![S_{335}=\dfrac{335}{2}[2(2)+(335-1)(-3)]](https://tex.z-dn.net/?f=S_%7B335%7D%3D%5Cdfrac%7B335%7D%7B2%7D%5B2%282%29%2B%28335-1%29%28-3%29%5D)
![S_{335}=\dfrac{335}{2}[4+(334)(-3)]](https://tex.z-dn.net/?f=S_%7B335%7D%3D%5Cdfrac%7B335%7D%7B2%7D%5B4%2B%28334%29%28-3%29%5D)
![S_{335}=\dfrac{335}{2}[4-1002]](https://tex.z-dn.net/?f=S_%7B335%7D%3D%5Cdfrac%7B335%7D%7B2%7D%5B4-1002%5D)

On further simplification, we get


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