OFFSET
0,2
PROG
(PARI) is_A362945(n, p=5)=ispower(vecsum([d^p|d<-digits(n)])+n, p)
for(n=0, 1e8, is_A362945(n) && print1(n", "))
(Python)
ispower5 = lambda n: n==round(n**.2)**5
is_A362945 = lambda n: ispower5(sum(int(d)**5 for d in str(n))+n)
def A362945(n, A=[0]):
while len(A) < n:
A.append(A[-1]+1)
while not is_A362945(A[-1]): A[-1]+=1
return A[n]
CROSSREFS
KEYWORD
nonn,base
AUTHOR
M. F. Hasler, June 15 2023
STATUS
approved