Rayleigh-Schrödinger perturbation method for tridiagonal Hamiltonians.