Chapter 289
Can You Cut The Cookies?
The Riddler for December 4, 2020. The Express is a Secret Santa derangement, and the Classic is a hard (still open) dissection of an isosceles right triangle into three congruent pieces.
Riddler Express
A family of five draws names from a hat for a book exchange; if anyone draws their own name, everyone redraws. What is the probability that no one draws their own name?
The Riddler, FiveThirtyEight, December 4, 2020(original post)
Solution
This asks for the chance a random permutation of five elements is a derangement (no fixed point). Of the permutations, count those with no one mapped to themselves. By inclusion–exclusion, the number of derangements is Equivalently, by cycle structure: a derangement of five elements is either a single -cycle ( of them) or a -cycle plus a -cycle (), totalling . So
The computation
Encode the definition: count permutations of five with no fixed point.
import itertools
from fractions import Fraction
derangements = sum(1 for p in itertools.permutations(range(5))
if all(p[i] != i for i in range(5)))
print(derangements, Fraction(derangements, 120)) # 44 11/30
The probability of a clean draw is .
Riddler Classic
You have cookie dough shaped as an isosceles right triangle and want to cut three congruent cookies, as large as possible, lying within the triangle without overlapping. What is the greatest percentage of the dough the three cookies can use?
The Riddler, FiveThirtyEight, December 4, 2020(original post)
Deferred (open problem)
Two or four congruent pieces can tile the isosceles right triangle exactly (it is “rep-tile” with and copies), wasting nothing. Three congruent pieces, however, leave dough behind, and the best achievable fraction is not known. The puzzle traces to Karl Scherer (Journal of Recreational Mathematics, 2002–03), whose published dissection used . Better constructions accumulate: a trapezoidal cut reaches about (independently the column’s top entry and Scherer-era work by Dean Ballard), and a construction by Robert Wainwright and Richard Hess reaches about The column states plainly that whether one can do better remains open, so there is no exact optimum to compute; the answer is recorded as the best-known . (With non-convex cutters allowed, the related “sphinx” version can approach , but that does not settle the triangle.)