It is an AP whose first term is 104, common difference is 5 and the last term is 999
a=104,d=5
Last term is 999
⇒n=(999−99)5=9005=180
Sn=n2[2a+(n−1)d]
=1802[2×104+(180−1)5]
=90[208+179×5]
=90[208+895]
=90×1103
=99270
Thus, the sum of all 3-digit numbers 104 to 999 which leave a remainder of 4 when divided by 5 is 99270.