Charles Hutton (1737–1823), LLD, FRS, Mathematician