This question was asked in Ex 9.2, 2
Why we taking last term 995 and not 1000 in 
Question2 exercise 9.2 class 11

Shreyash Malik's image