Here's a cute problem. Isn't too hard though. Just a recurrence.
Mary had a basket of hard-boiled eggs to sell. She sold half her eggs plus half an egg. Next she sold half her eggs and half an egg. The same thing occurred on her third, fourth and fifth times. When she finished, she had no eggs in her basket. How many did she have when she started?
Come up with the closed form recurrence relation and find the number of eggs she had initially.
Mary had a basket of hard-boiled eggs to sell. She sold half her eggs plus half an egg. Next she sold half her eggs and half an egg. The same thing occurred on her third, fourth and fifth times. When she finished, she had no eggs in her basket. How many did she have when she started?
Come up with the closed form recurrence relation and find the number of eggs she had initially.