OFFSET
1,2
COMMENTS
There are numbers that come in groups of 10, like 8200, 32780 and 524300. But there are also a few stand-alone numbers. Like 531459 (=5+3+1+4+5+9^6).
It is easy to generate large terms in the sequence, for example, 9^104+409 and 9^1047+4561 are the smallest terms with 100 and 1000 digits, respectively. - Giovanni Resta, May 12 2015
EXAMPLE
89 is in the sequence because 89 = 8+9^2.
2407 is in the sequence because 2407 = 2+4+0+7^4.
8202 is in the sequence because 8202 = 8+ 2^13 +0+2, also 8202 = 8+2+0+2^13.
PROG
(Python)
def sod(n):
....kk = 0
....while n > 0:
........kk= kk+(n%10)
........n =int(n//10)
....return kk
for i in range (1, 10**7):
....for j in range(1, len(str(i))+1):
........k=(i//(10**(j-1)))%10
........for m in range (2, 30):
............if i==sod(i)+k**m-k:
................print (i)
(Haskell)
import Data.List (nub); import Data.List.Ordered (member)
a257860 n = a257860_list !! (n-1)
a257860_list = 1 : filter f [1..] where
f x = any (\d -> member (x - q + d) $ ps d) $ filter (> 1) $ nub ds
where q = sum ds; ds = (map (read . return) . show) x
ps x = iterate (* x) (x ^ 2)
-- Reinhard Zumkeller, May 12 2015
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Pieter Post, May 11 2015
EXTENSIONS
One more term and some missing data added by Reinhard Zumkeller, May 12 2015
STATUS
approved