8, 88, 888, 8888.........
can be written as
8(1+11+111+.......upto n terms)
multiplying and dividing by 9
8/9 (9+99+999+.....upto n terms)
8/9 (10+100+1000+.......upto n terms - (1+1+......n))
8/9 (10/9 (10n -1) - n ))
[ sum upto n terms for a progression in G.P. a/(r-1) * (rn-1) ]