{{searchResults.length}} {{searchResults.length === 1 ? 'result' : 'results'}} for “{{searchWords}}”No results found for “{{searchWords}}”× back to contents
The decimal representation of $m/n,$ where $m$ and $n$ are relatively prime positive integers and $m < n,$ contains the digits 2, 5, and 1 consecutively, and in that order. Find the smallest value of $n$ for which this is possible.
If the digits $2,5,1$ start at some place, multiplying $\frac mn$ by a power of $10$ and dropping the integer part gives a fraction $\frac rn$ with $0.251\le\frac rn<0.252$. So we need an integer $r$ with $251n\le1000r<252n$. Multiplying by $\frac4{1000}$ gives $1.004n\le4r<1.008n$, i.e.\ $0.004n\le4r-n<0.008n$.
$4r-n$ is a positive integer, so $0.008n>1$, i.e.\ $n\ge126$. For $n<250$ we need $4r-n=1$, so $n\equiv3\pmod4$.
The least is $n=127$ with $r=32$, giving $\frac{32}{127}=0.25196\ldots$. The answer is $\boxed{127}$.
The decimal representation of $m/n,$ where $m$ and $n$ are relatively prime positive integers and $m < n,$ contains the digits 2, 7, and 1 consecutively, and in that order. Find the smallest value of $n$ for which this is possible.