Symbolic computations via Fourier–Legendre expansions and fractional operators