Sn=7+77+777+7777+……… upto n terms=7(1+11+111+…..) upto n terms=97(9+99+999+…..) upto n terms=97[(10−1)+(102−1)+(103−1)+…….+(10n−1)]=97[(10+102+103+…..+10n)−(1+1+1+…..n times)]=97[(10+102+103+…..+10n)−n] …….(1)
Now,
Calculating the sum of 10 + 102 + 103 + ……… + 10n.
a = 10
r = 10102 = 10
We know that,
The sum of the first n terms of a G.P. is given by:
Sn=r−1a(rn−1) [For r > 1]
⇒Sn=10−110(10n−1)=910(10n−1).
Substitute and Simplify, the above value in equation (1), we get :
Sn=97[910(10n−1)−n]=817[10×10n−10−9n]=817[10n+1−9n−10]
Hence, Sn = 817[10n+1−9n−10].