Legendre's Formula