OFFSET
1,1
EXAMPLE
a(4) = 19002 since 19002^4 = 130375880664608016 and a permutation of its digits results in 160500643816367088, a Fibonacci number.
PROG
(Python)
from itertools import count
from sympy import integer_nthroot
def A371589(n):
a, b = 1, 2
while True:
s = sorted(str(b))
m = int(''.join(s[::-1]))
u = int(''.join(s))
for i in count(max(2, integer_nthroot(u, n)[0])):
if (k:=i**n) > m:
break
t = sorted(str(k))
if t == s:
return i
break
a, b = b, a+b
CROSSREFS
KEYWORD
nonn,base,more
AUTHOR
Chai Wah Wu, Mar 28 2024
EXTENSIONS
a(15)-a(23) from Bert Dobbelaere, Apr 10 2024
STATUS
approved