A309017 Numbers that divide the sum of the digits of their cubes.
1, 2, 3, 8, 9, 17, 18, 26, 27
Offset: 1
Examples
8 is in the sequence because 8^3 = 512 and 5 + 1 + 2 = 8, and 8/8 = 1.
Programs
-
Mathematica
Select[Range[1000], Divisible[Plus@@IntegerDigits[#^3], #] &] (* Alonso del Arte, Jul 07 2019 *)
-
PARI
isok(n) = !(sumdigits(n^3) % n); \\ Michel Marcus, Jul 07 2019
Comments