The extension to recursion over holes of the Gilleron and Pain method for calculating partition functions of a canonical ensemble of noninteracting bound electrons is presented as well as a generalization for the efficient computation of collisional line broadening.