I'm calculating the probability mass function for a count variable and the normalization term is an infinite sum of the form ∑f(n), where the sum goes over all non-negative integers (0-infinity). I'm looking for a function in R that approximates such sum. After some research I've found that classical procedures are approximations like the Laplace method for sums or the Euler-Maclaurin sum formula, but I'm unable to find a function for that in R. The function f(n) becomes decreasing after some n and converges to 0. The function is
f(n) = exp(an + b*sqrt(n) - ln(n!)),
where a and b are some constants.