De Moivre, Abraham, Mathematician