The concept was first mentioned in 1657 by Bernard Frénicle de Bessy , and was made famous in the early 20th century by a story involving Srinivasa Ramanujan .
It was known in 1657 by a French mathematician Bernard Frénicle de Bessy .