Mathematics of the 19th Century door