Is x enough?
transcript
How long can each banner be? You cannot compute it. But you can test a length. Is this length enough?
Length one gives nine banners. Length two gives five. Length three gives four. Length four gives only two.
Four banners are wanted. Length three is the last that works. Length four is too long.
A longer banner never gives more banners. So the answers go yes, yes, then no. The flip happens once. Search for it.
Lengths run up to ten to the nine. Halving the range finds the flip in thirty steps. Each step is one pass over all the rolls.
Set the lowest length to zero. Set the highest to the longest roll. Counts reach five times ten to the thirteen, so use sixty-four bits.
Test one length that must say yes. Test one that must say no. Then test both bounds by hand.
Write the check. Search for the flip. Full breakdown in the lecture.