Primes reciprocated

Find the sum of all primes P P such that the decimal expansion of 1 P \frac{1}{P} has a fundamental period 5 5 .

Details and Assumptions:

  • As an explicit example, 1 3 = 0.33333 \frac{1}{3}=0.33333\ldots has fundamental period 1 1 and 1 101 = 0.00990099 \frac{1}{101}=0.00990099\ldots has fundamental period 4 4 .


The answer is 312.

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.

2 solutions

Abdeslem Smahi
Aug 7, 2015

Let P P be prime so:

If 1 P = 0. a 9 = a . p p = 3 \frac{1}{P}=0.\overline{a} \implies 9=a.p \implies p=3

If 1 P = 0. a b 99 = a b . p p = 11 \frac{1}{P}=0.\overline{ab} \implies 99=\overline{ab}.p \implies p=11

If 1 P = 0. a b c 999 = a b c . p p = 37 \frac{1}{P}=0.\overline{abc}\implies 999=\overline{abc}.p \implies p=37

If 1 P = 0. a b c d 9999 = a b c d . p p = 101 \frac{1}{P}=0.\overline{abcd}\implies 9999=\overline{abcd}.p \implies p=101

If 1 P = 0. a b c d e 99999 = a b c d e . p p = 41 , o r , p = 271 \frac{1}{P}=0.\overline{abcde}\implies 99999=\overline{abcde}.p \implies p=41 ,or,p=271

So the answers are 271 , 41 271,41

( a , b , c , d , e , p ) = ( 3 , 3 , 3 , 3 , 3 , 3 ) (a,b,c,d,e,p)=(3,3,3,3,3,3) also works. There are no constraints on a , b , c , d , e a,b,c,d,e other than that they're integers in [ 0 , 9 ] [0,9] , so 3 + 41 + 271 = 315 3+41+271=315 is the answer.

mathh mathh - 5 years, 10 months ago

Log in to reply

Those who answered 315 have been marked correct. The problem has been edited and the correct answer is now 312.

Calvin Lin Staff - 5 years, 10 months ago

Shouldn't p. abcde = 9999(4 nines (10^5-1))

batman rules - 1 year, 4 months ago
Advaith Kumar
May 12, 2020

the simplest way to solve: notice that 1/p = 0.abcdeabcde.... wher p is a prime 10^5 / p = abcde.abcdeabcde.... => 10^5 - 1/p = abcde So p | 99999 now test p = 3,41,271 ; 41,271 works => 271 + 41 = 312 is the answer

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...