OFFSET
1,1
COMMENTS
The sequence becomes periodic starting from a(900).
LINKS
Adam Karol Drażyk, Table of n, a(n) for n = 1..2000
FORMULA
EXAMPLE
Starting with a(1) = 2.
Sum of proper divisors of 2 is less than 2, so 2 + 2 * d(2) = 2 + 2 * 2 = 6. So a(2) = 6.
Sum of proper divisors of 6 is equal to 6, so 6 + 2 * d(6) = 6 + 2 * 4 = 14. So a(3) = 14
Sum of proper divisors of 14 is less than 14, so 14 + 2 * d(14) = 14 + 2 * 4 = 22. So a(4) = 22.
Sum of proper divisors of 22 is less than 22, so 22 + 2 * d(22) = 22 + 2 * 4 = 30. So a(5) = 30.
Sum of proper divisors of 30 is greater than 30, so 2 * 30 - s(30) = 2 * 30 - 42 = 18, where s(n) is the sum of proper divisors of n. So a(6) = 18.
MATHEMATICA
NestWhileList[If[DivisorSigma[1, #] <= 2*#, # + 2*DivisorSigma[0, #], 3*# - DivisorSigma[1, #]] &, 2, Unequal, All]
CROSSREFS
KEYWORD
nonn
AUTHOR
Adam Karol Drażyk, Mar 06 2026
STATUS
approved
