OFFSET
1,1
EXAMPLE
a(4) = 131 because 131^4 = 294499921 has 4 digits '9' 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, 9);
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Paolo P. Lava, Apr 19 2017
STATUS
approved