Problem 29.9 Easy Free

Toasting Three at a Time

A frying pan can toast at most three slices of bread at once, and toasting one side of one slice takes exactly one minute; a slice counts as toasted only once both its sides have been done. Flipping or swapping slices takes no time. What is the minimum number of minutes needed to toast four slices of bread?

Work it out, then compare with the answer.

SolutionShow the worked solution

Lower bound. Four slices have 88 sides to toast. The pan toasts at most 33 sides per minute, so at least ⌈8/3⌉=3\lceil 8/3\rceil = 3 minutes are needed.

Construction. Call the slices A,B,C,DA,B,C,D and their sides A1,A2,…,D2A_1,A_2,\dots,D_2. Toast:

  • minute 1: A1,B1,C1A_1, B_1, C_1;
  • minute 2: A2,B2,D1A_2, B_2, D_1;
  • minute 3: C2,D2C_2, D_2.

In every minute the sides belong to different slices, and each side is toasted exactly once. So all four slices are done after 33 minutes. The key is that slice CC is taken off after its first side and finished later. This keeps the pan full in the first two minutes.

3 minutes\boxed{3 \text{ minutes}}

Generalisation. Let a pan hold kk slices, and let there be nn slices to toast. The minimum time is max⁡(2,⌈2n/k⌉)\max\bigl(2,\lceil 2n/k\rceil\bigr).

  • Case n<kn<k. Two minutes suffice and are needed, since each slice needs two separate minutes.
  • Case n≥kn\ge k. Write the 2n2n sides in the order 11,21,…,n1,12,22,…,n21_1,2_1,\dots,n_1,1_2,2_2,\dots,n_2. Toast them kk at a time in this order. The two sides of a slice are n≥kn\ge k places apart, so they never fall in the same block. This takes ⌈2n/k⌉\lceil 2n/k\rceil minutes, which matches the counting bound.

On its own, the counting bound ⌈2n/k⌉\lceil 2n/k\rceil can fail when there are fewer slices than places, e.g. 22 slices in a 55-slice pan.