A383758 Least integer k for which sigma(k - x) + sigma(k + x) = n*k has at least one solution.
1, 2, 6, 24, 93, 1952, 14412, 361881, 61824672
Offset: 2
Examples
a(4) = 6 because the equation sigma(6-x) + sigma(6+x) = 4*6 has the solution x = 0 and no smaller number possesses this property. See A000396, A383268, and A383269. a(5) = 24 because the equation sigma(24-x) + sigma(24+x) = 5*24 has the solution x = 0. This is verified as follows: sigma(24-0) + sigma(24+0) = sigma(24) + sigma(24) = 60 + 60 = 120 = 5*24. Moreover, no smaller number possesses this property. See A141643. a(6) = 93 because the equation sigma(93 - x) + sigma(93 + x) = 6 * 93 has the solution x = 87: sigma(93 - 87) + sigma(93 + 87) = sigma(6) + sigma(180) = 12 + 546 = 6*93. Moreover, no smaller number possesses this property.
Programs
-
PARI
isok(k,n) = forstep(x=k-1, 0, -1, if (sigma(k - x) + sigma(k + x) == n*k, return(1))); a(n) = my(k=1); while (!isok(k, n), k++); k; \\ Michel Marcus, May 10 2025
Formula
a(n) <= A317681(n).
Extensions
a(10) from Michel Marcus and David A. Corneth, Jun 13 2025
Comments