login
A074205
Smallest positive integer whose n-th power contains an equal number of each digit (0-9) when represented in base 10.
9
1023456789, 32043, 2158479, 69636, 643905, 3470187, 421359, 1472157, 320127, 81785058, 15763347, 31064268, 44626422, 330096453, 85810806, 500282265, 2280602382, 711974055, 2748477954, 901992825, 3048377607, 3322858521, 175536645, 1427472867
OFFSET
1,1
EXAMPLE
643905^5 = 110690152879433875483274690625, which contains 3 of each digit 0-9.
PROG
(PARI) { a(n) = local(k, m, v); k=9; while(1, forstep(m=3*ceil(10^(k/n)/3), floor(10^((k+1)/n)), 3, t=m^n; v=vector(10); while(t, v[(t%10)+1]++; t\=10; ); if(vecmin(v)==vecmax(v), return(m); ); ); k+=10) } \\ Max Alekseyev, May 20 2009
CROSSREFS
Sequence in context: A095733 A239919 A020666 * A277054 A218770 A292569
KEYWORD
base,nonn
AUTHOR
Jack Brennen, Sep 17 2002
EXTENSIONS
a(10)-a(18) from Max Alekseyev, May 20 2009
a(19)-a(24) from Max Alekseyev, Feb 13 2012
STATUS
approved