The infinite quarter series is a series where each term is a quarter of the previous one:
We can visually represent this series by dividing a canvas (or price of paper) into 4 quadrants and colouring in one quadrant (bottom left). Then we repeat this process by dividing the top right quadrant into 4 and so on.
By doing so infinitely we will colour in a third of the initial canvas. This is because this infinite series converges to the value of 1/3.
Visual Demonstration using Python Turtle
Your Challenge
It is possible to visually represent this series using a triangle instead of a square.
Your task is to adapt the above Python script to represent this series using a triangle.
Help?
Check our flowchart to solve this challenge.
Solution...
The solution for this challenge is available to full members!Find out how to become a member:
➤ Members' Area