Source: https://math.unm.edu/~crisp/courses/math402/spring16/CantorSet.pdf