Quoto

Learn / Library / Brainteasers

Bowl of sweets

BrainteasersEasy

A bowl holds sweets. players take turns eating , or sweets from the bowl. The player who eats the last sweet loses. You move first and both players play optimally. How many sweets must you eat on your first move to guarantee a win?

Checking an answer needs JavaScript. The hint and the solution open without it.

A whole number, a decimal, a fraction like 3/8 or a percent.

Hint

Decide how many sweets you want to leave your opponent at the very end, then step back.

Solution
  1. If your opponent faces sweet, they must eat it and lose, so you want to leave .
  2. Whenever the opponent eats sweets, you eat , so each full round removes sweets.
  3. So the positions to leave are , , and so on, all of the form , and the largest below is .
  4. You therefore eat sweets first, so the answer is .

Answer: