If s(n) denotes the sum of the proper (less than ‘n’) divisors of n, then s(6) = 6 because 6 is a perfect number: divisors of 6 = {1, 2, 3, 6} and 1+2+3 = 6. If we repeat the “s operation” over and over, sometimes the iterates wander a long time, such as… Continue reading Iterating sum of proper divisors function