|
|
A107679
|
|
Numbers n such that sum of digits of n^3 is 2^3 = 8.
|
|
5
|
|
|
2, 5, 8, 11, 20, 50, 80, 101, 110, 200, 500, 800, 1001, 1010, 1100, 2000, 5000, 8000, 10001, 10010, 10100, 11000, 20000, 50000, 80000, 100001, 100010, 100100, 101000, 110000, 200000, 500000, 800000, 1000001, 1000010, 1000100, 1001000, 1010000, 1100000
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
MATHEMATICA
|
Do[If[Total[IntegerDigits[m^3]]==8, Print[m]], {m, 2*10^7}] (* Vincenzo Librandi, Aug 13 2017 *)
|
|
PROG
|
(PARI) isok(n) = sumdigits(n^3) == 8; \\ Michel Marcus, Aug 12 2017
(Magma) [ n: n in [1..2*10^6] | 8 eq (&+Intseq(n^3)) ]; // Vincenzo Librandi, Aug 13 2017
|
|
CROSSREFS
|
|
|
KEYWORD
|
easy,nonn,base
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|