|
|
A285453
|
|
Least number x such that x^n has n digits equal to k. Case k = 6.
|
|
6
|
|
|
6, 26, 36, 174, 561, 426, 616, 711, 341, 2389, 2226, 4968, 8136, 2605, 10838, 11396, 12299, 11877, 6398, 13862, 8906, 12551, 43196, 33104, 51241, 43955, 52492, 19718, 47985, 45903, 78017, 78862, 34572, 65196, 79768, 109223, 39291, 139583, 151046, 174124, 195761
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
EXAMPLE
|
a(4) = 174 because 174^4 = 916636176 has 4 digits '6' 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, 6);
|
|
MATHEMATICA
|
With[{k = 6}, Table[x = 1; While[DigitCount[x^n, 10, k] != n, x++]; x, {n, 41}]] (* Michael De Vlieger, May 01 2017 *)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|