6 7 5 0 0 6 7
The decimal expansion of 6 7 5 0 0 6 7 is 0 . 0 0 0 9 9 2 5 , where 925 is the repeating block, as indicated by the overline. That is, 0 . 0 0 0 9 9 2 5 = 0 . 0 0 0 9 9 2 5 9 2 5 9 2 5 … , where the block 925 repeats infinitely.
Find the number of positive integers n ≤ 6 7 5 0 0 such that the base- n expansion of 6 7 5 0 0 6 7 terminates after a finite number of digits.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Your lemma killed the problem.Nice lemma!
Log in to reply
Sometimes it's having the "right" interpretation / phrasing, that provides clarity to the problem. I believe that everyone is (subconsciously) aware of the lemma especially in base 10, and it's just how we can explain it to ourselves / others.
Wouldn't it be 2500 since the only way it can be be repeating infinitly is if in the denominator, there is a factor of 3, and 67500 equals 27 times 2500 so the only numerators that can make the decimal expansion terminate is if it is divisible by 27, so numbers 0, 27, 54.......67500 will work and dividing 27 we get the sequence 0, 1, 2....2500 so the total numbers that can work are 2501 integers but as 0 is not positive, the answer is 2500.
Log in to reply
Read the lemma again.
In particular, it is not sufficient that
since the only way it can be be repeating infinitly is if in the denominator, there is a factor of 3.
Let's prove the theorem that
Theorem : For p , q ∈ N , q = 1 and g c d ( p , q ) = 1 ,
Base- b expansion of q p terminates after a finite number of digits ⟺ D q ⊆ D b , where for any positive integer c , D c is the set of all distinct prime factors of c .
For the sake of clarification, when c = 4 0 = 2 3 × 5 , D 4 0 = { 2 , 5 } .
To prove the theorem, we'll use a number of lemmas.
Proof : If q ∣ b m for some m , every prime factor of q ∈ b . So, D q ⊆ D b .
Now assume, D q ⊆ D b . Let m be the minimum positive integer such that for each prime w ∈ D q , the highest exponent e of w , with w e ∣ q , doesn't exceed m . Then q ∣ b m .
That proves Lemma - 1 .
Proof : Let the base- b expansion of p be b n b n − 1 ⋯ ⋯ ⋯ b 1 b 0 = b n × b n + b n − 1 × b n − 1 + ⋯ ⋯ ⋯ + b 1 × b 1 + b 0 × b 0 , where n ≥ 0 is a positive integer and for each integer i (with 0 ≤ i ≤ n ), 0 ≤ b i < b .
Then, ( p × b − m ) = b m p = b n × b n − m + b n − 1 × b n − 1 − m + ⋯ ⋯ ⋯ + b 1 × b 1 − m + b 0 × b − m . As every power of b in the latter expression is unique in the expression, and for each integer i (with 0 ≤ i ≤ n ), 0 ≤ b i < b , and for some j (with 0 ≤ j ≤ n ) and every k (with 0 ≤ k < j ), b j = 0 and b k = 0 , base- b expansion of ( p × b − m ) = b m p terminates after a finite number of digits; with ( m − j ) digits after the unit digit (exclusive).
This establishes Lemma - 2 .
Proof : Assume that base- b expansion of q p terminates after a finite number of digits. Then there is m digits after the unit digit (exclusive), for some positive integer m . Then, ( q p × b m ) is an integer. But q p = ( q p × b m ) × b − m , which implies q p r = ( q p × r × b m ) × b − m . But as ( q p × r × b m ) is an integer, the base- b expansion of the right hand side of the last equation, by Lemma - 2 , terminates after a finite number of digits. So does q p r .
Now suppose that base- b expansion of q p r = q p × r terminates after a finite number of digits. That means, for some positive integer m , ( q p r × b m ) = ( q p × b m ) × r is an integer, which implies ( q p × b m ) is an integer, as q and r are coprime and q = 1 . And as ( q p × b m ) is an integer, base- b expansion of q p terminates after a finite number of digits.
This completes the proof for Lemma - 3 .
Now we prove the theorem stated at the beginning. Let's restate the theorem for convenience.
Statement : For p , q ∈ N , q = 1 and g c d ( p , q ) = 1 ,
Base- b expansion of q p terminates after a finite number of digits ⟺ D q ⊆ D b , where for any positive integer c , D c is the set of all distinct prime factors of c .
Proof : Assume that base- b expansion of q p terminates after a finite number of digits. Then for some positive integer m , ( q p × b m ) is an integer. As g c d ( p , q ) = 1 and q = 1 , q ∣ b m , which, by Lemma - 1 , implies, D q ⊆ D b .
Suppose, D q ⊆ D b . Then, by Lemma - 1 , q ∣ b m for some positive integer m . Then q p = ( q p × b m ) × b − m . The right side of the last equation, by Lemma - 2 , terminates after a finite number of digits, as q p × b m is an integer. So does q p , which is the left side of the same equation.
This completes the proof.
Now, D 6 7 5 0 0 = 2 2 × 3 3 × 5 4 = { 2 , 3 , 5 } . That means, each n must be divisible by 2 × 3 × 5 = 3 0 . There are ⌊ 3 0 6 7 5 0 0 ⌋ = 2 2 5 0 such n ≤ 6 7 5 0 0 , as the minimum of such n is strictly larger than 2 .
So, the answer is 2 2 5 0 .
NOTE :
Although we state and prove the theorem only for positive fractions/rational numbers q p , it's not hard to see it's valid also for negative fractions.
Lemma - 3 isn't used in the proof of the theorem. After writing the proof for Lemma - 3 , I found this proof of the theorem, which doesn't use Lemma - 3 .
The argument can be greatly shortened in the following way:
Theorem: The rational number q p in base n terminates if and only if q ∣ n k for some k .
Proof: If q p terminates in k digits after the decimal point, then n k × q p is an integer, implying that q min n k .
Conversely, if q p does not terminate in k digits after the decimal point for any k , then this tells us that n k × q p is never an integer, and thus q ∣ n k for any k . □
Note: The conditions q = 1 and g cd ( p , q ) = 1 are not needed.
Log in to reply
Wow! You can post it as another solution, please!
Or should I replace my solution with your one?
Problem Loading...
Note Loading...
Set Loading...
Lemma: The rational number q p (with g cd ( p , q ) = 1 ) in base n terminates if and only if q ∣ n k for some k .
Proof: If q p terminates in k digits after the decimal point, then n k × q p is an integer, implying that q ∣ n k .
Conversely, if q p does not terminate in k digits after the decimal point for any k , then this tells us that n k × q p is never an integer, and thus q ∣ n k for any k . □
Applying the above lemma to the problem, we get that 6 7 5 0 0 ∣ n k for some large enough k . Since the set of factors of 67500 is { 2 , 3 , 5 } , this tells us that 3 0 ∣ n is a necessary and sufficient condition. Thus, there are ⌊ 3 0 6 7 5 0 0 ⌋ = 2 2 5 0 solutions.