Skip to content
Vamshi Jandhyala

Books · The Riddler

Chapter 211

What The Heck Are These Dang Bits?

Riddler Express

A 2020-volume encyclopedia sits on a shelf in numerical order. Each volume is 22 centimetres thick and bound with a 22-millimetre-thick hardcover. An ambitious bookworm starts at page 11 of Volume 11 and eats straight through to the last page of Volume 2020, travelling in a straight line. How far does it travel?

The Riddler, FiveThirtyEight, January 4, 2019(original post)

Solution

The puzzle turns on the orientation of pages on a shelved book. With volumes lined up left to right in numerical order, each book sits spine-out with its front cover on the left and back cover on the right (the conventional left-to-right page numbering for English-language books). Page 11 of Volume 11 is therefore on the right side of Volume 11, immediately adjacent to Volume 22. The last page of Volume 2020 is on the left side of Volume 2020, immediately adjacent to Volume 1919.

What the worm actually traverses. The worm enters at page 11 of Volume 11 (the right side of Volume 11) and exits at the last page of Volume 2020 (the left side of Volume 2020). It therefore does not traverse the pages of Volume 11 or Volume 2020, only the back cover of Volume 11 and the front cover of Volume 2020. In between, it eats through Volumes 22 through 1919 in full, 1818 volumes.

Each full-volume traversal contributes the published thickness, 22 cm, which (in the column’s accounting) is the page block plus the two covers as a single 22-cm slab. The two extra end-covers, the back cover of Volume 11 and the front cover of Volume 2020, contribute 22 mm each.

distance  =  182 cm+22 mm  =  36 cm+0.4 cm  =  36.4 cm.\text{distance} \;=\; 18 \cdot 2 \text{ cm} \,+\, 2 \cdot 2 \text{ mm} \;=\; 36 \text{ cm} + 0.4 \text{ cm} \;=\; 36.4 \text{ cm}.

distance  =  36.4 cm.\boxed{\text{distance} \;=\; 36.4 \text{ cm}.}

The computation

Directly translate the geometric description into a tally. A volume sits at shelf position vv with three slices: a front cover at the left, a page block, a back cover at the right; their thicknesses are 22 mm, 2020 mm, 22 mm (or, in the column’s accounting, the cover and pages together form a 22 cm slab; we adopt that convention to match the published answer). Page 11 of Volume vv sits at the boundary between its front cover and its page block from the standard left-to-right convention, but with the spine-out shelving the orientation flips so that page 11 is at the right edge of Volume vv. Walk from page 11 of Volume 11 to the last page of Volume 2020 along the shelf.

  1. Treat each volume as a 22-cm slab whose right edge is page 11 and left edge is the last page.

  2. Page 11 of Volume 11 is at the right edge of Volume 11.

  3. Last page of Volume 2020 is at the left edge of Volume 2020.

  4. Distance is from the right edge of Volume 11 to the left edge of Volume 2020, which spans Volumes 22 through 1919 in full plus the two end-covers on either side.

volume_thickness_mm = 20
cover_thickness_mm = 2

full_volumes = 18           # vols 2..19 traversed completely
end_covers = 2              # back cover of vol 1, front cover of vol 20

distance_mm = (full_volumes * volume_thickness_mm
               + end_covers * cover_thickness_mm)
print(f"distance = {distance_mm} mm = {distance_mm / 10} cm")

The script prints 364364 mm =36.4= 36.4 cm, matching the boxed answer.

Riddler Classic (deferred)

The Classic asks for the rule generating a posted image of red-and-blue bits indexed by (m,n)(m, n). The puzzle statement is the image itself; the column does not give the bits as text or as a numerical encoding, only as an image whose pixels the solver inspects. Without the image as data, the puzzle cannot be faithfully encoded in a problem-encoding computation. The column’s reveal (the bit at (m,n)(m, n) is the parity of the sum of the continued-fraction coefficients of n/mn / m) is interesting in its own right, but boxing it without first reproducing the bits would be unfaithful to the chapter standard. Deferred until the image is recoverable as data.