A frog is at the bottom of a well. It is a 30 foot climb to get out. Each morning, the frog jumps 3 feet up the path out, but each night, as it sleeps, it slips back 2 feet down.
Thus, at the beginning of the first day, the frog has 30 feet to go, at the beginning of the second day it has 29 feet to go, and so on.
How many days does it take the frog to get out of the well?
It takes 28 days for the frog to get out (it gets out on the morning of the 28th day).
This is because on the beginning of the 28th day, the frog has 3 feet left to travel. Because the frog jumps 3 feet forward each morning, it will jump out of the well on this day.