Rational equations and partial fractions