14. Write a PYTHON program which finds the following series -S
S = 1+ 2+ 3+ 4+ .......+100
Answers
Explanation:
You have been given a series 1 + 1/2^2 + 1/3^3 + …..+ 1/n^n, find out the sum of the series till nth term.
You have been given a series 1 + 1/2^2 + 1/3^3 + …..+ 1/n^n, find out the sum of the series till nth term.Examples:
You have been given a series 1 + 1/2^2 + 1/3^3 + …..+ 1/n^n, find out the sum of the series till nth term.Examples:Input : n = 3
You have been given a series 1 + 1/2^2 + 1/3^3 + …..+ 1/n^n, find out the sum of the series till nth term.Examples:Input : n = 3Output : 1.28704
You have been given a series 1 + 1/2^2 + 1/3^3 + …..+ 1/n^n, find out the sum of the series till nth term.Examples:Input : n = 3Output : 1.28704Explanation : 1 + 1/2^2 + 1/3^3
You have been given a series 1 + 1/2^2 + 1/3^3 + …..+ 1/n^n, find out the sum of the series till nth term.Examples:Input : n = 3Output : 1.28704Explanation : 1 + 1/2^2 + 1/3^3Input : n = 5
You have been given a series 1 + 1/2^2 + 1/3^3 + …..+ 1/n^n, find out the sum of the series till nth term.Examples:Input : n = 3Output : 1.28704Explanation : 1 + 1/2^2 + 1/3^3Input : n = 5Output : 1.29126
You have been given a series 1 + 1/2^2 + 1/3^3 + …..+ 1/n^n, find out the sum of the series till nth term.Examples:Input : n = 3Output : 1.28704Explanation : 1 + 1/2^2 + 1/3^3Input : n = 5Output : 1.29126Explanation : 1 + 1/2^2 + 1/3^3 + 1/4^4 + 1/5^5
Answer:
Principal amount (P) = Rs 12500
Time period (T) = 3 years
Rate of interest (R) = 15% p.a.
Interest =
100
P×R×T
=
100
12500×15×3
= Rs 5625
Rest of the amount lent = Rs 15000−Rs 12500=Rs 2500
Rate of interest = 18% p.a.
Time period = 3 years
Interest =
100
P×R×T
=
100
2500×18×3
= Rs 1350
Total interest earned = Rs 5625+Rs 1350=Rs 6975