Prime time .....

What is the smallest prime number that cannot be written in the form p q + 1 p + q \dfrac{pq + 1}{p + q} , where p p and q q are prime numbers?

For example, 2 2 can be written as 3 5 + 1 3 + 5 \dfrac{3*5 + 1}{3 + 5} .


The answer is 73.

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

The following is a test one can use to see if a prime r r can be written in this way.

Look at the divisors k k of r 2 1 r^{2} - 1 that are less than r r and then find j j such that r 2 1 = k j r^{2} - 1 = kj .

Then the prime r r can be written in the desired way if and only if both r + k r + k and r + j r + j are both prime for some pair k , j k, j . (Insert proof here .... sometime). We will then have p = r + k p = r + k and q = r + j q = r + j such that

p q + 1 p + q = r 2 + r ( k + j ) + k j + 1 2 r + k + j = 2 r 2 + r ( k + j ) 2 r + k + j = r \dfrac{pq + 1}{p + q} = \dfrac{r^{2} + r(k + j) + kj + 1}{2r + k + j} = \dfrac{2r^{2} + r(k + j)}{2r + k + j} = r .

So, for r = 71 r = 71 we have r 2 1 = 5040 = 2 4 3 2 5 7 r^{2} - 1 = 5040 = 2^{4} * 3^{2} * 5 * 7 .

The divisors k < 71 k \lt 71 for which 71 + k 71 + k is prime are 2 , 8 , 12 , 18 , 30 , 36 , 42 , 56 2, 8, 12, 18, 30, 36, 42, 56 and 60 60 . The respective values of j j are 2520 , 630 , 420 , 280 , 168 , 140 , 120 , 90 2520, 630, 420, 280, 168, 140, 120, 90 and 84 84 .

Now of these we have that 71 + j 71 + j is prime for j = 2520 , 630 , 420 , 168 , 140 j = 2520, 630, 420, 168, 140 and 120 120 . So we have a choice of p , q p,q in the case of r = 71 r = 71 . For example, with k = 42 k = 42 and j = 120 j = 120 we have primes p = 113 p = 113 and q = 191 q = 191 .

We can go through this process for all primes less than 71 71 as well and successfully find suitable values for p p and q q . However, for r = 73 r = 73 , we find no such primes p , q p,q , and so 73 \boxed{73} is the smallest prime that cannot be written in the desired way.

Note: Testing all the primes this way is a bit tedious; a computer program might be of use here. If anyone has a more elegant way of showing that 73 73 is the answer then I would be interested to see your method.

Sir, but how did you find that 73 is the answer? Did you try for all primes? Is a modular solution possible? Thanks... :D

Satvik Golechha - 6 years, 9 months ago

Log in to reply

Yes, I had to test each prime in ascending order until I found one for which there were no suitable values for p , q p,q . It only takes a minute or two for each prime with the process outlined above, but with 73 73 being the 21 21 st prime it does become tedious. I don't know of any modular solution; part of the reason I posted the question was to see if anyone could come up with a faster method, possibly involving modular arithmetic.

Brian Charlesworth - 6 years, 9 months ago

Log in to reply

And why did you have a hope that such a prime may even exist? And how did you come up with only p q + 1 p + q \frac{pq+1}{p+q} ? I just want to know what ppl think before making a problem...

Satvik Golechha - 6 years, 9 months ago

Log in to reply

@Satvik Golechha I just noticed that

2 = 3 5 + 1 3 + 5 2 = \frac{3*5 + 1}{3 + 5} and 3 = 5 7 + 1 5 + 7 3 = \frac{5*7 + 1}{5 + 7} ,

which made me wonder if I could keep doing this with successive primes. It doesn't continue happening with successive primes, but it can be done with primes in general, up to and including 71 71 . The process works with some composites as well, (e.g., 6 = 11 13 + 1 11 + 13 , 8 = 11 29 + 1 11 + 29 6 = \frac{11*13 + 1}{11 + 13}, 8 = \frac{11*29 + 1}{11 + 29} ), but I find primes more "interesting" so I restricted the question to finding the smallest prime.

Brian Charlesworth - 6 years, 9 months ago

Log in to reply

@Brian Charlesworth Thanks sir. One final curiosity... next prime after 73?

Satvik Golechha - 6 years, 9 months ago

Log in to reply

@Satvik Golechha Well, 73 73 is the only 2-digit prime that cannot be written in this form, but if I were to go further I would need to write a program, as this could take a while by hand. The next question would be: Is the set of primes that cannot be written in this way finite or infinite? I have no idea, so I may ask this question in a note and see if anyone has any ideas to share.

Brian Charlesworth - 6 years, 9 months ago

Log in to reply

@Brian Charlesworth 73

107

131

157

173

179

193

227

263

277

283

I know this is kind of a late reply but there are the first few primes that cannot be written in that form. I wrote up a program that checked them. From the looks of things I would say that the set that cannot be written in that way is infinite.

Wen Z - 4 years, 9 months ago

Log in to reply

@Wen Z Great! Thanks for writing the program. It's interesting that 73 73 is the only prime between 0 0 and 100 100 while there are 6 between 100 100 and 200 200 , more than I expected. I agree, the case for infinite looks strong. :)

Brian Charlesworth - 4 years, 9 months ago

Log in to reply

@Brian Charlesworth I've also run it for more primes - and it seems that there is on average 4 'unexpressible primes' every 100 numbers up to about 5500 or something around there.

Wen Z - 4 years, 9 months ago

For every (p q+1)/(p+q)=k, k being the prime number we get p q+1=kp+kq =>(p-k)(q-k)=k^2-1 =>(p-k)(q-k)=(k-1)(k+1) Note "having p=2k-1 and q=2k+1 we prove that we can write every integer like that" Now we just take every number and check its divisors for a solution. Indeed we get 73.

Tudor Darius Cardas - 5 years, 4 months ago

I was on the right track then. But wasn't patient enough.

Muhammad Rasel Parvej - 4 years, 6 months ago

Proof here: p q + 1 p + q = r p q + 1 = r ( p + q ) p q p r q r + 1 ( p r ) ( q r ) r 2 + 1 = 0 ( p r ) ( q r ) = r 2 1 \frac{pq+1}{p+q}=r \Rightarrow pq+1=r(p+q) \Rightarrow pq-pr-qr+1 \Rightarrow (p-r)(q-r)-r^2+1=0 \Rightarrow (p-r)(q-r)=r^2-1 or j k = r 2 1 jk=r^2-1 and p = j + r p=j+r and q = k + r q=k+r .

Ron van den Burg - 3 years, 6 months ago

Nice factoring, that should do it!

Carsten Meyer - 1 year, 1 month ago
Jan Herman
Oct 31, 2017

I have no formal proof either, but a little shortcut for programatically testing:

WLOG p < q p < q .

Then p 2 = p q 2 q < p q p + q < p q + 1 p + q = p + 1 p 2 p + q < p \frac{p}{2} = \frac{pq}{2q} < \frac{pq}{p+q} < \frac{pq+1}{p+q} = p + \frac{1-p^2}{p+q} < p . So for the given prime r = p q + 1 p + q r=\frac{pq+1}{p+q} we have to check whether there is a prime q = p r 1 p + r q=\frac{pr-1}{p+r} for any p p satisfying r < p < 2 r r<p<2r .

Scott Broughton
Oct 23, 2017

No proof here, but I solved this by writing a program that uses the first 94 primes as variables p and q in the equation. Any prime that came up as a result of the equation was eliminated. 73 came up as the smallest remaining prime after this process of elimination. (Originally I had tried my program with just the first 20 primes and gotten 37 as a result, but it turns out 41 and 379 [the 75th prime] can be used as p and q to get 37, so I kept increasing the list of primes.) Not an elegant proof, but a solution nonetheless.

I'm very interesting in seeing a mathematical proof of this equation.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...