login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A055577
Numbers k such that the sum of digits of k^6 is equal to k.
10
0, 1, 18, 45, 54, 64
OFFSET
1,3
EXAMPLE
a(2) = 18 because 18^6 = 34012224 and 3+4+0+1+2+2+2+4 = 18
MATHEMATICA
Select[Range[0, 100], #==Total[IntegerDigits[#^6]]&] (* Harvey P. Dale, Oct 26 2011 *)
PROG
(Magma) [n: n in [0..100] | &+Intseq(n^6) eq n ]; // Vincenzo Librandi, Feb 23 2015
(Sage) [n for n in (0..70) if sum((n^6).digits()) == n] # Bruno Berselli, Feb 23 2015
(PARI) isok(k)=sumdigits(k^6)==k \\ Patrick De Geest, Dec 13 2024
CROSSREFS
KEYWORD
base,fini,full,nonn,changed
AUTHOR
Henry Bottomley, May 26 2000
STATUS
approved