The correct option is B 79{109(10n−1)−1}
The best way is to go through options.
Consider n = 2, then S2=7+77=84
Now, put n = 2 in choice (b).
Conventional Approach:
Sn=7+77+777+... to n terms
=7(1+11+111+... to n terms)
=79 (9 + 99 + 999+...to n terms)
=79 {(10-1) + (100-1} + (1000-1)+... to n terms}
=79 {(10+100+1000+... to n terms) - (1 + 1 +1...to n terms)}
=79{10.(10n−1)10−1−n}=79{109(10n−1)−n}