|
Search: id:A079339
|
|
|
| A079339 |
|
Least k such that k*n contains only 1's and 0's in decimal representation of k*n, or 0 if no k exists. |
|
+0 20
|
|
| 1, 5, 37, 25, 2, 185, 143, 125, 12345679, 1, 1, 925, 77, 715, 74, 625, 653, 61728395, 579, 5, 481, 5, 4787, 4625, 4, 385, 40781893, 3575, 37969, 37, 3581, 3125, 3367, 3265, 286, 308641975, 3, 2895, 259, 25, 271, 2405, 25607, 25, 24691358, 23935, 213, 23125
(list; graph; listen)
|
|
|
OFFSET
|
1,2
|
|
|
FORMULA
|
a(n) = A004290(n)/n.
|
|
EXAMPLE
|
3*37=111 and no integer k<37 has this property, hence a(3)=37
|
|
PROGRAM
|
(PARI) ?d(n, i)=floor(n/10^(i-1))-10*floor(n/10^i); ?test(n)=sum(i=1, ceil(log(n)/log(10)), if(d(n, i)*(1-d(n, i)), 1, 0)); ?a(n)=if(n<0, 0, s=1; while(test(n*s)>0, s++); s)
|
|
CROSSREFS
|
Cf. A004290, A070189, A078241-A078248, A079339, A096681-A096688.
Adjacent sequences: A079336 A079337 A079338 this_sequence A079340 A079341 A079342
Sequence in context: A118018 A002666 A119483 this_sequence A043075 A106129 A096673
|
|
KEYWORD
|
base,nonn
|
|
AUTHOR
|
Benoit Cloitre (benoit7848c(AT)orange.fr), Feb 13 2003
|
|
EXTENSIONS
|
More terms from Vladeta Jovovic (vladeta(AT)eunet.rs) and Matthew Vandermast (ghodges14(AT)comcast.net), Feb 14 2003
|
|
|
Search completed in 0.002 seconds
|