problem Legendre Polynomial