Computer Science, asked by anjalijoshi8777, 4 months ago

Find the sum of the following series:

S = 5+ 55 +555+ 5555+........ upto n terms. (java programming)​

Answers

Answered by omjhariya2807
4

Explanation:

Sum = 5 + 55 + 555 + …. n terms.

= 5/9[9 + 99 + 999 + …. n terms]

= 5/9[(10 – 1) + (100 – 1) + (1000 – 1) + … n terms]

= 5/9[10 + 100 + 1000 ….. – (1 + 1 + … 1)]

= 5/9[10(10n – 1)/(10 – 1) + (1 + 1 + … n times))

= 50/81(10n – 1) – 5n/9

Answered by renudevi6835
9

5+55+555+5555+55555+555555=>617280

Similar questions