The sum of the first n terms of the series 6 + 66 + 666 + ….. is
6+66+666+....=23(9+99+999+...)=23[(102−1)+(103−1)+....]=23[10+102+103+.....10n−n]=23[10(10n−1)(10−1)−n]=227[10n+1−10−9n]