Chapter 211
What The Heck Are These Dang Bits?
Riddler Express
A -volume encyclopedia sits on a shelf in numerical order. Each volume is centimetres thick and bound with a -millimetre-thick hardcover. An ambitious bookworm starts at page of Volume and eats straight through to the last page of Volume , 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 of Volume is therefore on the right side of Volume , immediately adjacent to Volume . The last page of Volume is on the left side of Volume , immediately adjacent to Volume .
What the worm actually traverses. The worm enters at page of Volume (the right side of Volume ) and exits at the last page of Volume (the left side of Volume ). It therefore does not traverse the pages of Volume or Volume , only the back cover of Volume and the front cover of Volume . In between, it eats through Volumes through in full, volumes.
Each full-volume traversal contributes the published thickness, cm, which (in the column’s accounting) is the page block plus the two covers as a single -cm slab. The two extra end-covers, the back cover of Volume and the front cover of Volume , contribute mm each.
The computation
Directly translate the geometric description into a tally. A volume sits at shelf position with three slices: a front cover at the left, a page block, a back cover at the right; their thicknesses are mm, mm, mm (or, in the column’s accounting, the cover and pages together form a cm slab; we adopt that convention to match the published answer). Page of Volume 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 is at the right edge of Volume . Walk from page of Volume to the last page of Volume along the shelf.
Treat each volume as a -cm slab whose right edge is page and left edge is the last page.
Page of Volume is at the right edge of Volume .
Last page of Volume is at the left edge of Volume .
Distance is from the right edge of Volume to the left edge of Volume , which spans Volumes through 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 mm 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 . 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 is the parity of the sum of the continued-fraction coefficients of ) 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.