On a series of Rainville involving Legendre polynomials