300-year-old math mystery