OFFSET
1,2
LINKS
Martin Gossow, Table of n, a(n) for n = 1..100
EXAMPLE
a(4) = 59 because 59^4 = 12117361 has 4 digits '1' and is the least number to have this property.
MAPLE
P:=proc(q, h) local a, j, k, n, t; for n from 1 to q do for k from 1 to q do
a:=convert(k^n, base, 10); t:=0; for j from 1 to nops(a) do if a[j]=h then t:=t+1; fi; od;
if t=n then print(k); break; fi; od; od; end: P(10^9, 1);
PROG
(PARI) A285448vec=(n, {k=1})->{my(L:list, c); L=List(); for(t=1, n, forstep(y=1, +oo, 1, c=digits(y^t); if(sum(j=1, #c, c[j]==k)==t, listput(L, y); break()))); return(Vec(L))} \\ R. J. Cano, Apr 29 2017
CROSSREFS
KEYWORD
base,nonn,easy
AUTHOR
Paolo P. Lava, Apr 19 2017
STATUS
approved