Infinite Quarter Series

The infinite quarter series is a series where each term is a quarter of the previous one:
infinite-quarter-series

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.

infinite-quarter-series-visual-representation-square

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.
infinite-quarter-series-using-triangles

Help?


Check our flowchart to solve this challenge.
unlock-access

Solution...

The solution for this challenge is available to full members!
Find out how to become a member:
➤ Members' Area

Did you like this challenge?

Click on a star to rate it!

Average rating 5 / 5. Vote count: 7

No votes so far! Be the first to rate this post.

As you found this challenge interesting...

Follow us on social media!

Tagged with: , , ,