Worksheet 2 Recurrence Relations and Summations 1) Write a program to find the sum of the following series using python $\sum_{k=0}^{200} 2 \cdot (1.01)^k$ Expected Output: sum = 1277.84 2) Using python, verify that using the following formula (the RHS) gives the same answer as Q1. $\sum_{k=0}^{n-1} a \cdot r^k = \frac{a(r^n - 1)}{r - 1}$
Added by Lauren A.
Close
Step 1
We need to calculate the sum of the series \(\sum_{k=0}^{200} 2 \cdot (1.01)^k\) using Python. Show more…
Show all steps
Your feedback will help us improve your experience
Darrick Lau and 93 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
(Sum series) Write a recursive function to compute the following series: \[ m(i)=1+\frac{1}{2}+\frac{1}{3}+\ldots+\frac{1}{i} \] Write a test program that displays $m(i)$ for $i=1,2, \dots, 10$
( Sum series ) Write a recursive function to compute the following series: \[ m(i)=\frac{1}{3}+\frac{2}{5}+\frac{3}{7}+\frac{4}{9}+\frac{5}{11}+\frac{6}{13}+\ldots+\frac{i}{2 i+1} \] Write a test program that displays $m(i)$ for $i=1,2, \dots, 10$
geometric progression mathematical progression a recurrence relation Problem Two: Graph the following functions: f(n) = 2n+1 f(x) = x^2
Liam H.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD