Continued Fraction expansion for the X-ray absorption cross-section