Recursive determination of the sum-of-divisors function