Charles Messier was an astronomer, not a mathematician. He is best known for his work on cataloging the Messier objects, a list of bright nebulae and star clusters visible from the Northern Hemisphere.
Messier's Celestial Odyssey: The Enchanting World of Charles Messier