Summation of perturbation series in the generalized Hubbard model