It is based on an idea of Latin squares described by the mathematician Leonhard Euler in the 18th century.