A070276 Numbers n such that sum of digits of n equals the sum of digits of n^3.
0, 1, 8, 10, 80, 100, 171, 378, 468, 487, 577, 585, 586, 684, 800, 1000, 1710, 3780, 4680, 4870, 4877, 5770, 5850, 5851, 5860, 5868, 6840, 8000, 10000, 15877, 17100, 28845, 37800, 46800, 48700, 48770, 57700, 58500, 58510, 58600, 58680, 58968, 59777
Offset: 1
Links
- Harvey P. Dale, Table of n, a(n) for n = 1..100
Programs
-
Mathematica
Select[Range[0,60000],Total[IntegerDigits[#]]==Total[IntegerDigits[ #^3]]&] (* Harvey P. Dale, May 10 2012 *)
-
PARI
isok(n) = sumdigits(n) == sumdigits(n^3); \\ Michel Marcus, Aug 12 2017