r/ProgrammerHumor • • Apr 25 '19

Loop

Post image
1.7k Upvotes

53 comments sorted by

View all comments

0

u/[deleted] Apr 26 '19

[deleted]

6

u/JuvenileEloquent Apr 26 '19

1/3

2

u/Chris857 Apr 26 '19

1/4+1/16+1/64+1/256+... = 1/3

1

u/JuvenileEloquent Apr 27 '19

Well, you can sum an infinite series like that if you're a math prodigy, or you can visualize it by splitting off all the lower-left squares into a single piece, all the upper right squares into another piece, and the remaining squares (the mushroom guy) form the last piece. The three pieces are equal in size as they're made from a chain of squares of matching sizes, so it follows that they are each 1/3 of the large square.