OFFSET
1,2
EXAMPLE
2394 is in the sequence because 2^4 + 3^3 + 9^2 + 4^1 = 128 = 2^7.
MAPLE
with(numtheory):for n from 1 to 4000 do:l:=length(n):n0:=n:s1:=0:s2:=0:for
m from 1 to l do:q:=n0:u:=irem(q, 10):v:=iquo(q, 10):n0:=v :s2:=s2+u^m:od:x:=evalf(log[2](s2)):if x=floor(x) then printf(`%d, `, n):else fi:od:
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Michel Lagneau, Dec 21 2010
STATUS
approved