A277057 Least k such that n-th repunit times k contains all digits from 1 to 9.
123456789, 11225079, 1113198, 210789, 11115, 11115, 11115, 11115, 11115, 11115, 11115, 11115, 11115, 11115, 11115, 11115, 11115, 11115, 11115, 11115, 11115, 11115, 11115, 11115, 11115, 11115, 11115, 11115, 11115, 11115, 11115, 11115, 11115, 11115, 11115
Offset: 1
Examples
a(2) = 11225079 because A002275(2)*11225079 = 11*11225079 = 123475869 that contains all digits from 1 to 9 and 11225079 is the least number with this property.
Programs
-
PARI
isok(n) = my(d=digits(n)); vecmin(d) && (#Set(digits(n)) == 9); a(n) = {if (n==1, return(123456789)); my(k=1); while(! isok(k*(10^n - 1)/9), k++); k;} \\ Michel Marcus, Sep 26 2019
Comments