Calculations of rovibrational energy levels of diatomic molecules by the perturbation method are considered. Perturbation series may diverge at large values of the angular momentum quantum number, and in this case the Euler method is used for series summation. The Kratzer oscillator, i.e., the exactly solvable quantum problem, is used as an approximant. The equation for the general term of a transformed series is derived and analyzed.