A Lot of Work for One Apple
A man entered an orchard through gates and there took a certain number of apples. When he left the orchard, he gave the first guard half of the apples that he had and one apple more. To the second guard, he gave have his remaining apples and one apple more. He did the same to each of the remaining five guards and left the orchard with one apple. How many apples did he gather in the orchard?
Source: Fibonacci's Liber Abaci