
Several people visited a library yesterday. Each one visited the library just once (in the course of yesterday). Amongst any three of them, there were two who met in the library. Prove that there were two moments T and T' yesterday such that everyone who visited the library yesterday was in the library at T or T' (or both).
Solution
Let the people be P1, ... Pn and suppose Pi is present during the time interval [ai,bi]. Let aM = max ai, bm = min bi. Now we claim that given any of the intervals [ai,bi] we have aM ∈ [ai,bi] or bm ∈ [ai,bi]. Suppose not.
So aM ∉ [ai,bi]. We know that ai ≤ aM, so we must have bi < aM. Thus the intervals [ai,bi] and [aM,bM] are disjoint with [ai,bi] lying entirely to the left of [aM,bM].
Similarly, bm ∉ [ai,bi], but bm ≤ bi, so bm < bi and [am, bm] and [ai,bi] are disjoint with [am, bm] lying entirely to the left of [ai,bi]. Thus the three intervals [am, bm], [ai,bi] and [aM,bM] are disjoint. Contradiction. So we can take T, T' to be aM and bm.
![]()
© John Scholes
jscholes@kalva.demon.co.uk
29 Oct 2003
Last corrected/updated 29 Oct 03