Open-ended recursive calculation of single residues of response functions for perturbation-dependent basis sets.