Past exam of the mathematics course of the University of Cambridge 2006 iii Paper 58 4 a Solution Created 2026-10-03 Updated 2026-10-14
The best classical strategy avoids previously failed inputs: inspect a uniformly random permutation. Assume and let be the first marked position. For , the first guesses must all fail and the next must succeed. ThusThe empty product covers . The binomial form follows by choosing the marked positions uniformly: put one at and the remaining after it. This is the first marked item in a random permutation distribution.
The requested range is part of its support, but omits the last possible value . All bad inputs can be encountered first, after which success is certain. The same formula includes that nonzero terminal probability; summing through this last value gives one. If , the search never succeeds. If sampling were instead with replacement, its inferior repeated-guess strategy would have the geometric law with no such finite endpoint.