Ask your own question, for FREE!
SAT&ACT Math 22 Online
ganeshie8 (ganeshie8):

Find all primes \(p\) such that the decimal expansion of \(\dfrac{1}{p}\) has a repeating pattern length of \(8\)

OpenStudy (anonymous):

what do u think

OpenStudy (kainui):

I feel like we solved this the other day but I feel bad that I can't remember exactly how we ended up solving it... Something to do with the geometric series though hmm...

ganeshie8 (ganeshie8):

I remember we solved a similar problem for length of \(5\)... but same idea yes :)

OpenStudy (kainui):

Can we use WA to factor large numbers or is that not allowed haha.

OpenStudy (mathmath333):

\(73\) is one.

OpenStudy (mathmath333):

11 has the period of 2 ,check it again

OpenStudy (kainui):

Looks like the possible numbers are 73 and 137 and I checked them all for repeating since if p=3 doesn't count since .33333333 is really period 1 not 8, but I guess it depends on how you wanna look at it... I don't want to spoil the fun though, if @mathmath333 wants to figure it out so I won't put the really interesting part of how I got these numbers. =P

ganeshie8 (ganeshie8):

it is kinda amazing those are the only possible candidates for a length of 8 out of all the infinitely many primes !

OpenStudy (kainui):

Yeah I just realized also 1/101 has a period of 4 so that also technically doesn't count. Should be fixed now lol

OpenStudy (kainui):

@ganeshie8 do these numbers have a name? This is really fascinating, I think I'd like to think and play with these a lot more since it's sort of seems sort of like solving a quadratic where you have two answers.

OpenStudy (kainui):

What I want to know is: 1) For every period, what are all the primes 2) What are these for all bases, not just base 10

ganeshie8 (ganeshie8):

It seems the # of primes that share the same period is pretty random as it depends on the number of prime factors of \(10^{\text{period}}-1\)... Also we saw earlier many of these prime factors have lesser periods as well... im reading this http://primes.utm.edu/glossary/xpage/UniquePrime.html

OpenStudy (mathmath333):

so there are only two primes \(73\) and \(137\) which satisfy \(10^{8} -1\pmod {prime}=0\)

OpenStudy (kainui):

Fascinating.

OpenStudy (mathmath333):

discrete logarithm problem ?

OpenStudy (kainui):

Although probably unrelated I just noticed that the two numbers with period 8 are 73 and 137 and when you add them up you get 210 which is 8 primorial, which is like a factorial but all the primes less than it, \[\Large 8 \# = 7*5*3*2=210\] Probably just a weird coincidence.

OpenStudy (mathmath333):

i see u keep making weird relations

OpenStudy (kainui):

hahaha

OpenStudy (kainui):

Unfortunately it doesn't seem to work, but there still might be some relation. For period 6 there are two numbers, 7 and 13 and so 6#=30 but 7+13=20 so ten off. Shoot, wouldn't that be fascinating if there was a connection? The only reason I think there might be some chance is because this is all in base 10, so we have some sort of relationship going on.

OpenStudy (kainui):

@mathmath333 I almost forgot, did you want to see the solution?

OpenStudy (mathmath333):

yes

OpenStudy (kainui):

Since it repeats every 8 digits, if you'll allow me to put a letter to represent digits, we have \[\frac{1}{p} = 0.abcdefghabcdefgh...\] and really what we have is that there's this possibly eight digit number (for instance, 00000001 is acceptable since i has period 8) \[abcdefgh = n\] So if we sort of plug it into the formula below we really have: \[\frac{1}{p} = n*10^{-8}+n*10^{-16}+ \cdots\] which is really just a geometric series in 10^-8, \[\frac{1}{p} = n * \frac{10^{-8}}{1-10^{-8}} = \frac{n}{10^8-1}=\frac{n}{99999999}\] So if we rearrange this to solve for the prime we have: \[\Large p = \frac{99999999}{n}\] So from there you can just factor 10^8-1 into prime factors using wolfram alpha or try to do something fancy, but that's really all there's left to do.

OpenStudy (mathmath333):

nice work

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!