Calculation of generalized secant integral using binomial coefficients.