A Prime Quadratic

Let S S be the set of all ordered triples ( p , q , r ) (p,q,r) of prime numbers for which at least one rational number x x satisfies p x 2 + q x + r = 0 px^2+qx+r=0 . Find all the primes that appear in seven or more elements of S S ?

Enter your answer as the sum of all such primes.
Enter 0 if there is no such prime.


The answer is 7.

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

Ravi Dwivedi
Jul 17, 2016

Relevant wiki: Quadratic Diophantine Equations - Problem Solving

Only the primes 2 2 and 5 5 appear seven or more times.

( 2 , 5 , 2 ) , ( 2 , 5 , 3 ) , ( 2 , 7 , 5 ) , ( 2 , 11 , 5 ) (2,5,2),(2,5,3),(2,7,5),(2,11,5) and their rearrangements show the fact that 2 2 and 5 5 appear more than seven times.

We will show that if either l = 3 l=3 or l l is a prime greater than 5 5 then l l occurs at most six times as an element of a triple in S S . ) Note that ( p , q , r ) S (p,q,r) \in S if and only if q 2 4 p r = a 2 q^2-4pr=a^2 for some integer a a . In particular, 4 p r 16 4pr \geq 16 this forces q 5 q \geq 5

  • If q q is odd then a a is odd and so q 2 a 2 1 ( m o d 8 ) q^2 \equiv a^2 \equiv 1 \pmod{8}

Consequently, one of p , r p,r must equal 2 2 .

If r = 2 r=2 then 8 p = q 2 a 2 = ( q + a ) ( q a ) 8p=q^2-a^2=(q+a)(q-a) .Since both factors are of same sign and their sum is q > 0 q>0 ,both factors are positive. Since they are also both even we have q + a { 2 , 4 , 2 p , 4 p } q+a \in \{2,4,2p,4p\} and so q 2 p + 1 , p + 2 q \in {2p+1,p+2} . Similarly if p = 2 p=2 then q 2 r + 1 , r + 2 q \in {2r+1,r+2} . Consequently, l l occurs at most twice as there are prime numbers in the list { 2 l + 1 , l + 2 , l 1 2 , l 2 } \{2l+1, l+2,\frac{l-1}{2},l-2\} For l = 3 l=3 , 2 l 1 = 1 2l-1=1 is not a prime. For l 7 l \geq 7 the numbers l 2 , l + 2 l-2,l+2 cannot all be prime, since one of them is always a multiple of 3 3 .

Remark The above argument shows that the cases listed for the 5 5 are the only cases that can occur. By the contrast there are infinitely many cases where 2 2 occurs if either the twin prime conjecture holds or there are infinitely many Sophie Germain primes. .

Great proof Ravi, and nice remark involving twin prime conjecture and Sophie Germain primes for the case of infinite 2 s. Actually, because of those two constraints, there are very few cases where a prime appears in exactly 6 elements of S. The first one is 11, and the one after is 179.

Wei Chen - 4 years, 11 months ago

how do you know only 2 and 5 appear 7 or more times? what's the intuition?

Willia Chang - 4 years, 11 months ago

Log in to reply

You can just check it by substituting q q and p p with some concrete numbers in the formulas q = 2 p + 1 q=2p+1 and q = p + 2 q=p+2

Jakub Bober - 4 years, 10 months ago
Jesse Nieminen
Jul 18, 2016

We have quadratic equation p x 2 + q x + r = 0 px^2 + qx + r = 0 . Using the rational root theorem we know that only ± 1 , ± r , ± 1 p , ± r p \pm 1, \ \pm r, \ \pm \dfrac1p, \ \pm \dfrac rp can be rational solutions to the equation.

Now we get 8 8 equations by substituting the possible roots to the equation.

p q + r = 0 p + q + r = 0 p r 2 q r + r = 0 p r 2 + q r + r = 0 1 p q p + r = 0 1 p + q p + r = 0 r 2 p q r p + r = 0 r 2 p + q r p + r = 0 p - q + r = 0 \\ p + q + r = 0 \\ pr^2 - qr + r = 0 \\ pr^2 + qr + r = 0 \\ \dfrac{1}{p} - \dfrac{q}{p} + r = 0 \\ \dfrac{1}{p} + \dfrac{q}{p} + r = 0 \\ \dfrac{r^2}{p} - \dfrac{qr}{p} + r = 0 \\ \dfrac{r^2}{p} + \dfrac{qr}{p} + r = 0

Since the primes are positive, after some simplifications we are left with 2 2 equations.

p + r = q p r + 1 = q p + r = q \\ pr + 1 = q

If q = 2 q = 2 the equations have no solutions, hence q q is odd. This means that either p = 2 p = 2 or r = 2 r = 2 .

2 + r = q 2 r + 1 = q 2 + p = q 2 p + 1 = q 2 + r = q \\ 2r + 1 = q \\ 2 + p = q \\ 2p + 1 = q

Since for each odd prime n n there can be only 1 1 corresponding twin prime if n 5 n \neq 5 (because 5 5 is the middle number in the only prime triple) and only 1 1 corresponding Sophie Germain Prime and for each Sophie Germain Prime there can be only 1 1 corresponding prime, n = 5 n = 5 because otherwise n n can only appear in 6 6 elements of S S .

We can easily find that there are indeed 7 7 elements containing 5 5 in S S and since all of those elements also contain 2 2 , the only primes which appear enough times are 2 2 and 5 5 and hence the answer is 7 \boxed{7} .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...