OFFSET
1,1
COMMENTS
Lowest values of y for zeroless numbers: e.g., x = 21, 344, 3674 -> y = 3, x = 427523 -> y = 6, x = 75818252 -> y = 8.
LINKS
Paolo P. Lava, Table of n, a(n) for n = 1..147
Paolo P. Lava, List of the first 147 numbers x along with their y
EXAMPLE
x = 10 -> y = 8 because 8^1 + 8^0 + 1^8 + 0^8 = 10.
x = 21 -> y = 3 because 3^2 + 3^1 + 2^3 + 1^3 = 21.
x = 100 -> y = 97 because 97^1 + 97^0 + 97^0 + 1^97 + 0^97 + 0^97 = 100.
MAPLE
P:=proc(q) local a, b, j, k, n; for n from 1 to q do
a:=convert(n, base, 10); for k from 1 to q do
b:=add(j^k+k^j, j=a); if b>n then break; else
if n=b then print(n); fi; fi; od; od; end: P(10^9);
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Paolo P. Lava, Jan 29 2019
STATUS
approved