# The sum of n first numbers of the string 7,77,777,….

Find the sum of  n first numbers of the string  7,77,777,….

$7+77+777+...=7(1+11+111+...)=$

$=7(\frac{10-1}{9}+\frac{10^{2}-1}{9}+\frac{10^{3}-1}{9}+.....\frac{10^{n}-1}{9})=$

$=\frac{7}{9}\left&space;(&space;10+10^{2}+10^{3}+....10^{n}-1-1-1...-1&space;\right&space;)=$

$=\frac{7}{9}\left&space;(&space;10+10^{2}+10^{3}+....10^{n}-n&space;\right&space;)=$

$=\frac{7}{9}\left&space;(&space;10\cdot&space;\frac{10^{n}-1}{10-1}-n&space;\right&space;)=$

$=\frac{7}{9}\left&space;(&space;\frac{10(10^{n}-1)}{9}-n&space;\right&space;)=$

$=\frac{7}{81}\left&space;(&space;10^{n+1}-10-9n&space;\right&space;)$