Algebraic resolution of the Burgers equation with a forcing term