Coefficients of Legendre polynomials