One Symbol Changes Everything

Let p p and q q be positive integers such that both the equations x 2 p x + q = 0 x^2-px + q= 0 and x 2 q x + p = 0 x^2-qx + p = 0 have distinct integral roots of x x . Find the value of p + q p+q .


The answer is 11.

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

Relevant wiki: Quadratic Diophantine Equations - Solve by Factoring

Another approach is as follows. Let a , b a,b be the roots of x 2 p x + q = 0 x^{2} - px + q = 0 and c , d c,d be the roots of x 2 q x + p = 0 x^{2} - qx + p = 0 . Then by Vieta's we have that

a + b = p , a b = q , c + d = q , c d = p a + b = c d , c + d = a b a + b = p, ab = q, c + d = q, cd = p \Longrightarrow a + b = cd, c + d = ab

a + b + c + d = a b + c d a b a b + c d c d = 0 \Longrightarrow a + b + c + d = ab + cd \Longrightarrow ab - a - b + cd - c - d = 0

( a 1 ) ( b 1 ) + ( c 1 ) ( d 1 ) = 2 \Longrightarrow (a - 1)(b - 1) + (c - 1)(d - 1) = 2 .

Now as both a + b a + b and a b ab must be positive we must have both a , b a,b as positive integers. Likewise c , d c,d . Thus without loss of generality we can have either (i) ( a 1 ) ( b 1 ) = ( c 1 ) ( d 1 ) = 1 (a - 1)(b - 1) = (c - 1)(d - 1) = 1 or (ii) ( a 1 ) ( b 1 ) = 0 (a - 1)(b - 1) = 0 and ( c 1 ) ( d 1 ) = 2 (c - 1)(d - 1) = 2 . Since the roots must be distinct we can rule out case (i), leaving us with case (ii) as the only viable option. Again without loss of generality we then set a = 1 , c = 3 , d = 2 a = 1, c = 3, d = 2 , which then gives us b = c + d = 5 b = c + d = 5 . Finally we find that p + q = a + b + c + d = 11 p + q = a + b + c + d = \boxed{11} .

@Brian Charlesworth , we really liked your comment, and have converted it into a solution.

Brilliant Mathematics Staff - 4 years, 10 months ago

That's a really nice observation!

How can we solve the problem for integers (not just positive)? We have a necessary condition, but that isn't sufficient.

Calvin Lin Staff - 4 years, 10 months ago

How does b=c+d.....? b, c can also have values 4,1

Bhagwati Vishnoi - 4 years, 10 months ago
Anurag Pandey
Aug 4, 2016

Given equation are x 2 p x + q = 0 x^2 -px + q =0 (let this be equal to f ( x ) = 0 f(x)=0 ) and x 2 q x + p = 0 x^2 -qx + p =0 (let this be equal to g ( x ) = 0 g(x)=0 )

Now there are three possibilities ,

p > q p>q

p = q p=q and

p < q . p<q.

C a s e ( I ) : p > q Case (I) : p > q

f ( 0 ) = q f(0)= q

f ( 1 ) = 1 ( p q ) f(1)= 1 - (p-q) Now in this case , if p q > 1 p-q>1 will mean that f(1) is negative. So since f(0) is positive and f(1) is negative will mean that there is a root between the number 0 and 1 . But wait we needed that the root must be and integer. So the only possibility is that p q = 1 p-q = 1 (which is the least difference possible since they are natural numbers) . so one root comes out to be 1 as f(1) will come out to be zero and by Vieta's product of roots formula we get other root as q which is also an integer (as q is natural number ). But we also needed the root of g(x)=0 to be integer.
So now let's check the discriminant of g(x)=0.

D = q 2 4 p D= q^2 - 4 p Substituting p=q+1 we get D = q 2 4 ( q + 1 ) . D= q^2-4(q+1). Now for the root to be an integer the discriminant must be a perfect square. Therefore , let q 2 4 p 4 = m 2 q^2- 4p -4 = m^2

( q 2 ) 2 m 2 = 8. (q-2)^2 - m^2 = 8. Completing the square method is used to reach above step. Now since the difference between two square is 8. The only possibility comes out to be 3 2 1 2 . 3^2 - 1^2. ( Bonus :Can anybody prove it why is this the only possibility. I am also trying but not able to do it. One thing can be used that any square of integers is / are of form 4k or 4k+1). So q-2=3 => q= 5 and so p= 6. Okay now it comes the time for you to work. The case (iii) will give the same answer answer as the case (I) since both are kinda symmetric just the value will get reverse. So you got to prove that in case (ii) we won't get any solution .

Maths is all about learning and solving and then repeating it over and over again.

[ This comment has been converted into a solution ]

Brian Charlesworth - 4 years, 10 months ago

Log in to reply

Nicely done, same way here!

Wei Chen - 4 years, 10 months ago

Nice observation made about f ( 1 ) f(1) to help us determine that p q = 1 p - q = 1 .

To prove that the only positive solution to ( p 2 ) 2 m 2 = 8 (p-2)^2 - m^2 = 8 , simply factor the LHS as ( p 2 m ) ( p 2 + m ) = 8 (p-2-m)(p-2+m) = 8 . What are the factors of 8? Consider cases from there.

Calvin Lin Staff - 4 years, 10 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...