Formulas from first-, second-, and third-order perturbation theory for atoms with one valence electron