Here,
a=1,d=4-1=3 and let S(n)=n
Let n be the number of terms.
We know the formula:
Putting all the values we get,
But n cannot be negative
So the final value of n is
We know that:-
Hence the value of x is 40