Decimal Expansion Buddies

1 271 = 0.0036900369... \frac{1}{271}=0.0036900369...

1 369 = 0.0027100271... \frac{1}{369}=0.0027100271...

If the decimal expansion of 1 a \frac{1}{a} can be written as a string of 5 5 digits repeated over and over ad infinitum, where the rightmost digits of the string form the number b b and any leading digits are 0 0 's, (as per the example), then a a and b b are considered decimal expansion buddies .

How many distinct pairs of decimal expansion buddies are there?

Note: ( a , b ) (a,b) and ( b , a ) (b,a) are considered to be the same pair of numbers, and therefore are only counted once.

Bonus: Can you generalize this for any period length?


The answer is 6.

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.

3 solutions

We require that 1 a = b ( 1 1 0 5 + 1 1 0 10 + . . . . ) = b 1 0 5 1 \dfrac{1}{a} = b*\left(\dfrac{1}{10^{5}} + \dfrac{1}{10^{10}} + ....\right) = \dfrac{b}{10^{5} - 1}

a b = 1 0 5 1 = 99999 = 3 2 × 41 × 271 , \Longrightarrow ab = 10^{5} - 1 = 99999 = 3^{2} \times 41 \times 271,

which has ( 2 + 1 ) ( 1 + 1 ) ( 1 + 1 ) = 12 (2 + 1)(1 + 1)(1 + 1) = 12 positive divisors, and thus 6 6 divisor pairs, i.e., 6 \boxed{6} pairs of "buddies".

As for a generalization for period n n buddies, we just need to find the number of divisor pairs whose product is 1 0 n 1. 10^{n} - 1. For example, for period 6 6 there are 32 32 buddies, since 999999 = 3 3 × 7 × 11 × 13 × 37. 999999 = 3^{3} \times 7 \times 11 \times 13 \times 37.

A follow-up question could be: for which n n are there the most buddies? For n = 18 n = 18 there are 320 320 buddies, which is the most up to n = 20. n = 20. (This might be best determined by a computer program; there doesn't seem to be an analytic approach for this one.)

I think I've misunderstood "solely leading zeros", I thought there should be at least one leading zero and eliminated possibilities like: 1 9 = 0. 11111 \frac{1}{9}=0.\overline{11111}

Kazem Sepehrinia - 5 years, 9 months ago

Log in to reply

Good point. There would be 3 3 pairs for which this problem would arise, in which case there are only 3 3 buddy pairs left, namely ( 41 , 2439 ) , ( 123 , 813 ) (41, 2439), (123, 813) and ( 271 , 369 ) . (271,369).

@Garrett Clarke I think that Kazem has a valid concern. Do you think that the phrasing of the question or the posted answer should be changed?

Brian Charlesworth - 5 years, 9 months ago

Log in to reply

I'm not very good at English, If solely means that there is at least one zero, then yeah, there are 3 3 such pairs.

Kazem Sepehrinia - 5 years, 9 months ago

Log in to reply

@Kazem Sepehrinia O.k., great, (and your English is excellent as far as I'm concerned :)). I think that the "solely" could probably be dropped from the phrasing of the question, since "period of length 5 5 " is more definitive. My concern is more with the fact that, for example, 0. 11111 0.\overline{11111} has period 1 1 and not period 5. 5.

With n = 6 n = 6 we would have the pair ( 7 , 142857 ) . (7,142857). The decimal expansion of both 1 a \frac{1}{a} and 1 b \frac{1}{b} would have a "valid" period of 6 , 6, but one of them would have no leading zeroes. So I think that it would be better to leave out any mention of "solely leading zeroes" to avoid confusion. I've notified Garrett, so we'll see how he wants to proceed.

Brian Charlesworth - 5 years, 9 months ago

Log in to reply

@Brian Charlesworth Right :) let's wait for Garrett! There is an interesting point here, 1 99999 = 0. 00001 1 1 = 0. 9 \frac{1}{99999}=0.\overline{00001} \\ \frac{1}{1}=0.\overline{9} :))

Kazem Sepehrinia - 5 years, 9 months ago

Log in to reply

@Kazem Sepehrinia Ahhhh I'm just seeing this now! Everyone is making very good points. I had great difficulty in trying to word this question while I was making it, honestly I'm looking for suggestions. @Kazem Sepehrinia , @Brian Charlesworth , @Bufang Liang : any thoughts on specific changes that can be made?

I want the problem to stay geared toward the intended solution, meaning that the answer is 6 because 99999 has 12 divisors. How should I go about changing it?

Garrett Clarke - 5 years, 9 months ago

Log in to reply

@Garrett Clarke I think that to preserve the elegance of the problem and the intended solution you might need to drop any mention of period 5 5 and just say something like:

"If the decimal expansion of 1 a \frac{1}{a} is a string of 5 5 digits repeated over and over ad infinitum, where the rightmost digits of the string form the number b b and any leading digits are 0 0 's, (as per the example), then a a and b b are decimal expansion buddies."

A bit awkward, but I think it stays true to your concept and keeps the present solution intact.

Brian Charlesworth - 5 years, 9 months ago

Log in to reply

@Brian Charlesworth Perfect, thank you all for your help!

Garrett Clarke - 5 years, 9 months ago

Log in to reply

@Garrett Clarke Great. Hopefully Kazem and Bufang approve of the rephrasing as well. :)

Brian Charlesworth - 5 years, 9 months ago

@Brian Charlesworth This was what I read when I tried this evening. 8 October 2015. I ought to sacrifice a trial as 0's was thought to be 00 only. Ambiguity was there.

Lu Chee Ket - 5 years, 8 months ago

@Garrett Clarke How about "a repeating decimal with period of length 5 which is made up of the decimal expansion of b (could have leading 0's)"

Bufang Liang - 5 years, 9 months ago

@Kazem Sepehrinia As long as one of them such as 1/ 99999 satisfies, the one follows shall not be doubted. In fact, the second equation is true. These are considered as one count.

Lu Chee Ket - 5 years, 8 months ago

I think it would be more appropriate to change the wording, as accounting for excess cases makes it harder to generalize and makes the problem not as elegant.

Bufang Liang - 5 years, 9 months ago

Log in to reply

@Bufang Liang Yes, I agree. It's Garrett's question so it's his choice as to how to proceed, but I think that the wording will need to be revised.

Brian Charlesworth - 5 years, 9 months ago

same problem here....i think (41,2439) should also b ruled out....because zeros are different in both decimal expansion....which leaves just 2 pairs....

Abhishek Sharma - 5 years, 9 months ago

To confirm, yes, there does not exist an analytic approach to solving this for any period length, since it requires prime factorizing repunits. However, once the prime factorization is found, the rest of the problem is trivial.

Bufang Liang - 5 years, 9 months ago

Oh. inthought 1 is not included

Gari Chua - 5 years, 9 months ago
Michael Mendrin
Aug 24, 2015

The problem would have been cleaner if the trivial set {1,99999} was excepted. But then again, some people might get a clue from that number 99999 on how to solve this. I would hate to be the one to have to figure out how to best word this problem.

Yes, this was a tricky one to word. I had to sift through several possible rephrasing suggestions to Garrett before coming up with one that was unambiguous but did not give too much away. It's a bit awkward but at least it's serviceable. And I kind of like the 1 , 99999 1,99999 buddies because it brings up the curious fact that 1 1 = 0. 9 . \frac{1}{1} = 0.\overline{9}. :)

Brian Charlesworth - 5 years, 9 months ago

Log in to reply

Exactly, I thought excluding the trivial case would help people get the idea to find the divisors of 99999 far to early in the problem. I wanted people to realize that on their own and find (1,99999) as an interesting example, not the other way around.

Garrett Clarke - 5 years, 9 months ago
Madhav Srirangan
Aug 23, 2015

Let 1/a =10^{-n}b+10^{-2}b+...................... these terms are in GP Hence, 1/a=10^{-n}b/1-10^{-n} * 1/ab=10^{n}-1 *

ab=10^{n}-1

for n=5, ab=99999=3^{2} 41^{1} 271^{1} ==> no. of ways on expressing ab is (2+1)\times (1+1)\times (1+1) = \boxed {6}

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...