https://www.collectedny.org/mathmemos/movie-theater-problem/
The Movie Theater Problem