Question 21
A farmer needs to distribute an equal number of apples to three different markets. Before reaching each market, he passes through a magical orchard where the apples he carries double in quantity. After delivering apples to the third market, he has no apples left. What is the smallest number of apples the farmer started with?