Find the sum of the following series:
S = 5+ 55 +555+ 5555+........ upto n terms. (java programming)
Answers
Answered by
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
9
5+55+555+5555+55555+555555=>617280
Similar questions