The three digit number when divided by 7 divided reminder 5 are.
103, 110, 117,----- 999.
This forms an A.P with common difference = 7 and first term = 103.
Now an=a+(n−1)d
999=103+(n−1)7
8967=n−1 ⇒n=128+1=129.
The middle term of sequence is 65thterm.
and it is
a65=103+64×7=103+448
[a65=551].
Now sum of term before 65th term
sn=n2[2a+(n−1)d] =642[2×103+63×7]
sn=32[206+441]=20,704.
sum of term after 65thterm
Sn=642[2×558+63×7]=49,824.
∴[S before middle term = 20,704] & [S after middle term = 49824].
and middle term is [a65=551]