If this growth process goes on forever, how long will the line become? Your choices are:
A. $\infty$
B. $\frac{4}{3}$
C. $\frac{8}{3}$
D. $\frac{1}{3}(4+\sqrt{2})$
E. $\frac{2}{3}(4+\sqrt{2})$
What's your answer? (A-E)?
Now you try. You can't expand this to infinite terms on a computer, but you can take it to many terms, like 20, 50, or 100.
Determine what the sum appears to approach after 5-10 terms.
Type your code here:
See your results here:
First, try to see the pattern in the terms after the $1+$.
Next, if you can run a for-loop from 1 to some-number-of-terms (in
the variable, i, how could you work i (=1,2,3,4,5, etc.) into this pattern?
In the starter code above,
we're calling the changing denominator in the pattern d. Fix the d= line, then use it to program
in the formula after the sum=sum+ line to starting adding up the terms.
Share your code
Show a friend, family member, or teacher what you've done!