A268135 Numbers n such that the digit sum of n^2 is a divisor of the digit sum of n.
1, 9, 10, 18, 19, 45, 46, 55, 90, 99, 100, 145, 149, 180, 189, 190, 198, 199, 289, 351, 361, 369, 379, 388, 450, 451, 459, 460, 468, 495, 496, 549, 550, 558, 559, 568, 585, 595, 639, 729, 739, 775, 838, 855, 900, 954, 955, 990, 999, 1000, 1049, 1098, 1099, 1179, 1188, 1189, 1198
Offset: 1
Examples
Digit sum of 149^2 = 7. Digit sum of 149 = 14. Since 7 is a divisor of 14, 149 is in the sequence.
Links
- Indranil Ghosh, Table of n, a(n) for n = 1..10001
Programs
-
Mathematica
Select[Range[200], Mod[Total[IntegerDigits[#]], Total[IntegerDigits[#^2]]] == 0 &]
-
PARI
isok(n) = (sumdigits(n) % sumdigits(n^2)) == 0; \\ Michel Marcus, Jan 27 2016
Extensions
More terms from Michel Marcus, Jan 27 2016
Comments