700 Followers Problem!

a 3 + b 3 + 3 ( a 2 + b 2 ) = 700 ( a + b ) 2 a^3+b^3+3\big(a^2+b^2\big)=700(a+b)^2

Let a a and b b be rational numbers such that a b , a \ge b, their sum is an integer, and the equation above is fulfilled. Find all solutions ( a , b ) (a, b) and enter your answer as ( a + b ) \sum (a+b) .


The answer is 5586.

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

Mark Hennings
Jun 5, 2017

If we write n = a + b n = a+b then we have n 3 3 a b n + 3 ( n 2 2 a b ) = 700 n 2 a b = n 2 ( n 697 ) 3 ( n + 2 ) \begin{aligned} n^3 - 3abn + 3(n^2 - 2ab) & = 700n^2 \\ ab & = \frac{n^2(n-697)}{3(n+2)} \end{aligned} so that a , b a,b are the roots of the quadratic equation X 2 n X + n 2 ( n 697 ) 3 ( n + 2 ) = 0 X^2 - nX + \frac{n^2(n-697)}{3(n+2)} \; = \; 0 Thus the discriminant of this quadratic must be the square of a rational, and hence n 2 ( 2794 n ) 3 ( n + 2 ) = q 2 \frac{n^2(2794 - n)}{3(n+2)} \; = \; q^2 for some rational q q . This means that 2 < n 2794 -2 < n \le 2794 and that ( n + 2 ) ( 2794 n ) = 3 k 2 5588 + 2792 n n 2 = 3 k 2 ( n 1396 ) 2 + 3 k 2 = 1954404 = 2 2 × 3 2 × 23 3 2 \begin{aligned} (n+2)(2794 - n) & = 3k^2 \\ 5588 + 2792n - n^2 & = 3k^2 \\ (n - 1396)^2 + 3k^2 & = 1954404 = 2^2 \times 3^2 \times 233^2 \end{aligned} for some non-negative integer k k . Considering the factor of 3 3 , it is clear that n 1396 n-1396 , and hence also k k , is a multiple of 3 3 . Thus n = 1396 + 3 u n = 1396 + 3u , k = 3 v k = 3v where u , v u,v are integers with v 0 v \ge 0 and u 2 + 3 v 2 = 2 2 × 23 3 2 u^2 + 3v^2 \; = \; 2^2 \times 233^2 Since 233 1 ( m o d 4 ) 233 \equiv 1 \pmod{4} we see that ( 3 233 ) = ( 1 233 ) ( 3 233 ) = ( 233 3 ) = ( 2 3 ) = 1 \left(\frac{-3}{233}\right) \; = \; \left(\frac{-1}{233}\right) \left(\frac{3}{233}\right) \; = \; \left(\frac{233}{3}\right) \; = \; \left(\frac{2}{3}\right) \; = \; -1 and so 3 -3 is not a quadratic residue modulo 233 233 . Thus v v , and so u u as well, is a multiple of 233 233 . Thus we deduce that n = 1396 + 699 p n = 1396 + 699p , k = 699 q k = 699q , where p , q p,q are integers with q 0 q \ge 0 and p 2 + 3 q 2 = 4 p^2 + 3q^2 = 4 . There are only four possible solutions, namely ( p , q ) = ( 2 , 0 ) , ( 2 , 0 ) , ( 1 , 1 ) , ( 1 , 1 ) (p,q) = (2,0), (-2,0), (1,1), (-1,1) , which yield n = 2 , 2794 , 697 , 2095 n = -2, 2794, 697, 2095 respectively. Ignoring the first of these (since we know that n > 2 n > -2 ), there are three possible values of n n , with one solution for a , b a,b for each such value, and so the answer to the question is 2794 + 697 + 2095 = 5586 2794+697+2095 = \boxed{5586} .

Nice approach using the discriminant! I arrived at the same equation thinking "difference" rather than "discriminant":

Write s = a + b s = a + b and d = a b d = a - b and translate the problem into ( 1 4 s 3 + 3 4 s d 2 ) + ( 3 2 s 2 + 3 2 d 2 ) = 700 s 2 , (\tfrac14s^3 + \tfrac34sd^2) + (\tfrac32s^2 + \tfrac32 d^2) = 700s^2, which then becomes s 2 ( 2794 s ) = 3 d 2 ( s + 2 ) . s^2(2794 - s) = 3d^2(s+2). This approach avoids calculation of the product a b ab , which is not really needed here and gets transformed into a b a - b when calculating the discriminant.

The problem is now indeed finding under what conditions the ratio of 2794 s 2794 - s and 3 ( s + 2 ) 3(s+2) is a square. I like the nice trick of multiplying numerator and denominator: if D = a x 2 D = ax^2 and N = a y 2 N = ay^2 then D N = a 2 x 2 y 2 DN = a^2x^2y^2 is a square. I had not thought of this, and was therefore stuck with considering the possible values of the gcd of the two terms.

Sadly I missed the obvious case s = 2794 s = 2794 in submitting my answer :(

Arjen Vreugdenhil - 3 years, 12 months ago

Log in to reply

You and Kazem both considered a b a-b , and we all obtained the same equations. Calvin's comment is that a b a-b comes "out of thin air", while the discriminant approach gives a pretty algorithmic route through problems of this type.

It is nearly always easier to consider integer Diophantine equations than rational ones!

Mark Hennings - 3 years, 12 months ago

Log in to reply

A disagree with a b a - b coming "out of thin air".

In a way I simply applied a linear change of coordinate basis: ( a , b ) ( a + b , a b ) (a, b) \mapsto (a + b, a - b) . It is a standard approach in multivariate problem solving to choose such a transformation.

Another way of looking at it: the sum a + b a + b and the difference a b a - b are the simplest expressions that are symmetric vs. anti-symmetric under swapping a a and b b . This problem is obviously symmetric in a , b a, b , except for the anti-symmetric requirement a > b a > b .

To me, this choice is also intuitive. When I see a problem symmetric in a a and b b , I immediately wonder about the average (half-sum) and half-difference. A very simple example is the mental calculation of 17 × 23 = 2 0 2 3 2 17\times 23 = 20^2 - 3^2 , where a = 17 a = 17 and b = 23 b = 23 have average 20 20 and half-difference 3 3 .

Even when solving x 2 + B x + C = 0 x^2 + Bx + C = 0 , x = 1 2 B ± 1 2 B 2 4 C = 1 2 ( a + b ) ± 1 2 ( a b ) . x = -\tfrac 12 B \pm \tfrac 12\sqrt{B^2 - 4C} = \tfrac12(a + b) \pm \tfrac12(a - b). Your approach of finding a b = D ab = D then using the determinant formula, boils down to calculating the squared difference D = ( a b ) 2 D = (a - b)^2 .

Moreover, knowledge of sum and difference makes it very easy to recover a = ( s + d ) / 2 a = (s + d)/2 and b = ( s d ) / 2 b = (s - d)/2 , which is more difficult when one knows only the sum and the product.

Arjen Vreugdenhil - 3 years, 12 months ago

Log in to reply

@Arjen Vreugdenhil To clarify, it "comes out of thin air" in the sense of "Why is this the exact term that we want to consider"? Why didn't we look at say a + 2 b a + 2b or 2 a 3 b 2a - 3b ?

I have nothing against "I was hit by inspiration to consider this term". However, when there is a motivating reason behind it, I like to highlight it.

Sometimes, inspiration comes from experience, and we might find it hard to verbalize. E.g. mentioning that "For symmetric equations, it is often helpful to consider the change of variables ( u , v ) = ( a + b , a b ) (u,v) = ( a + b , a - b ) ", would help to reduce the mystique behind the solution.

Calvin Lin Staff - 3 years, 12 months ago

Your approach for the first part of the problem is nicest.

Kazem Sepehrinia - 3 years, 11 months ago

Thanks for providing the motivation. Considering the discriminant feels more natural than "let's see what's so special about this (arbitrary) term ( (a-b)^2 )".

Calvin Lin Staff - 4 years ago

Check your addition at the end. 2794 + 697 + 2095 = 5586, not 5588.

Stacey Greenstein - 3 years, 12 months ago

Log in to reply

Typo fixed...

Mark Hennings - 3 years, 12 months ago

Isn't 2792n instead an -2792n at the equation about n and k?

세연 조 - 3 years, 11 months ago

Log in to reply

Sorry i meant -2792n instead of 2792n

세연 조 - 3 years, 11 months ago

Log in to reply

Whoops the first comment was the right thought of mine... really sorry about that.

세연 조 - 3 years, 11 months ago

Log in to reply

@세연 조 Typo fixed...

Mark Hennings - 3 years, 11 months ago

Can u please clear that last part of quadratic residue?

Arijit Dey - 3 years, 10 months ago

Log in to reply

Check out the Brilliant wikis on quadratic residues and the Legendre symbol .

Mark Hennings - 3 years, 10 months ago

Log in to reply

I did , but the in the first line where you used (-3|233) ; where did this (-3) come from???

Arijit Dey - 3 years, 10 months ago

Log in to reply

@Arijit Dey Note that u 2 + 3 v 2 0 ( m o d 233 ) u^2 + 3v^2 \equiv 0 \pmod{233} , and 233 233 is prime. If 233 233 does not divide v v , then we can find an integer w w such that v w 1 ( m o d 233 ) vw \equiv 1 \pmod{233} , and hence ( u w ) 2 + 3 0 ( m o d 233 ) (uw)^2 + 3 \equiv 0 \pmod{233} , which implies that 3 -3 is a quadratic residue modulo 233 233 . Since this is not true, it follows that 233 233 divides v v , and so on...

Mark Hennings - 3 years, 10 months ago
Kazem Sepehrinia
Jun 2, 2017

Let k = a + b k=a+b and rewrite the equation: k 3 3 a b k + 3 ( k 2 2 a b ) = 700 k 2 a b = k 2 k 697 3 k + 6 a 2 k a + k 2 k 697 3 k + 6 = 0 ( 1 ) k^3-3abk+3(k^2-2ab)=700k^2 \ \ \Longrightarrow \ \ ab=k^2 \frac{k-697}{3k+6} \ \ \Longrightarrow \ \ a^2-ka+k^2 \frac{k-697}{3k+6}=0 \qquad (1) This is a quadratic in a a and hence its discriminant must be a square of a rational. Thus Δ a = k 2 4 k 2 k 697 3 k + 6 = k 2 2794 k 3 ( k + 2 ) ( 2 ) \Delta_a=k^2-4k^2 \frac{k-697}{3k+6}=k^2 \frac{2794-k}{3(k+2)} \qquad (2) is square of a rational and consequently 2794 k 3 ( k + 2 ) \frac{2794-k}{3(k+2)} is non-negative and square of a rational. Observe that 1 k 2794 -1 \le k \le 2794 . Check that for k = 1 k=-1 the expression 2794 k 3 ( k + 2 ) \frac{2794-k}{3(k+2)} is not square of a rational. For k = 0 k=0 and k = 2794 k=2794 , discriminant becomes zero and solving quadratic equation ( 1 ) (1) together with k = a + b k=a+b yields to two solutions from here: ( a , b ) = ( 0 , 0 ) , ( 1397 , 1397 ) \color{#D61F06} (a, b)=(0, 0), (1397, 1397) .

Henceforth, 0 < k < 2794 0<k<2794 and for co-prime positive integers p , q p, q 2794 k 3 ( k + 2 ) = p 2 q 2 k = 2794 q 2 6 p 2 3 p 2 + q 2 \frac{2794-k}{3(k+2)}= \frac{p^2}{q^2} \ \ \Longrightarrow \ \ k=\frac{2794 q^2-6p^2}{3p^2+q^2} Thus, 3 p 2 + q 2 2794 q 2 6 p 2 3p^2+q^2 \mid 2794 q^2-6p^2 or 3 p 2 + q 2 2794 q 2 6 p 2 + 2 ( 3 p 2 + q 2 ) = 2796 q 2 ( 3 ) 3p^2+q^2 \mid 2794 q^2-6p^2+2(3p^2+q^2)=2796 q^2 \qquad (3) Notice that d = gcd ( q 2 , 3 p 2 + q 2 ) = gcd ( q 2 , q 2 + 3 p 2 + q 2 ) = gcd ( q 2 , 3 p 2 ) = gcd ( q 2 , 3 ) = 1 , 3 d=\gcd(q^2, 3p^2+q^2)=\gcd(q^2, -q^2+3p^2+q^2)=\gcd(q^2, 3p^2)=\gcd(q^2, 3)=1, 3 And d = 3 d=3 occurs when 3 q 3 \mid q . Suppose that d = 1 d=1 . Then from relation ( 3 ) (3) we have 3 p 2 + q 2 2796 = 3 × 4 × 233 3p^2+q^2 \mid 2796=3 \times 4 \times 233 , but 3 q 3 \nmid q , and this implies that 3 p 2 + q 2 932 = 4 × 233 3p^2+q^2 \mid 932=4 \times 233 . Hence possible values for 3 p 2 + q 2 3p^2+q^2 are 4 , 233 , 466 4, 233, 466 and 932 932 . We claim that 3 p 2 + q 2 = 4 3p^2+q^2=4 . We use the facts that a perfect square can only be congruent to 0 , 1 0, 1 mod 4 4 and congruent to 0 , 1 , 4 , 7 0, 1, 4, 7 mod 9 9 . Note that 3 p 2 + q 2 3p^2+q^2 mod 4 4 never produce 2 2 and, thus, 3 p 2 + q 2 = 466 3p^2+q^2=466 is not possible because 466 4 2 466 \stackrel{4}{\equiv} 2 . Also, 3 p 2 + q 2 3p^2+q^2 mod 9 9 never produce 5 5 and 8 8 . Hence 3 p 2 + q 2 = 233 3p^2+q^2=233 and 3 p 2 + q 2 = 932 3p^2+q^2=932 are not possible because 233 9 8 233 \stackrel{9}{\equiv} 8 and 932 9 5 932 \stackrel{9}{\equiv} 5 . So 3 p 2 + q 2 = 4 3p^2+q^2=4 and p = q = 1 p=q=1 , which gives k = 697 k=697 and equation ( 1 ) (1) gives another solution, namely ( a , b ) = ( 697 , 0 ) \color{#D61F06} (a, b)=(697, 0) .

Remaining case is d = 3 d=3 , where q = 3 q q=3q' for a positive integer q q' . Then relation ( 3 ) (3) gives 3 p 2 + 9 q 2 2796 × 9 q 2 . 3p^2+9q'^2 \mid 2796 \times 9q^2. And since 3 p 3 \nmid p , we get 3 p 2 + q 2 4 × 233 3p^2+q'^2 \mid 4 \times 233 . By the same arguments above we get p = q = 1 p=q'=1 . Therefore p = 1 p=1 and q = 3 q=3 .This yields to k = 2095 k=2095 . Using equation ( 1 ) (1) gives the last solution ( a , b ) = ( 4190 / 3 , 2095 / 3 ) \color{#D61F06} (a, b)=\left(4190/3, 2095/3 \right) .

Then the final answer to this problem is k = 0 + 2794 + 697 + 2095 = 5586 \sum k= 0+2794+697+2095= \boxed{5586} .

in the equation 3 I think it will be 2796q^2

If 3 p 2 + q 2 = 1 3p^2+q^2=1 and p = q = 1 p=q=1 how this is possible both ?

Kushal Bose - 4 years ago

Log in to reply

@Kushal Bose Thank you for carefully reading the solution! I'll edit the solution. Ah I see, that is a typo!

Kazem Sepehrinia - 4 years ago

Sir, I am a 11 class student and have some query regarding maths in general (i.e questions and ideas). Sir, I need to clarify my queries as I want to pursue this field further after 12 class. So sir, if you may can you provide some means of contact like Facebook, Twitter etc so that I may personally ask the doubts. Thank you, I have been a keen follower of your questions.

Sanjay Kumar - 3 years, 12 months ago

Log in to reply

Hi, contact me at ksepehrinia@gmail.com

Kazem Sepehrinia - 3 years, 12 months ago

Log in to reply

Thank you, I will mail tomorrow sir.

Sanjay Kumar - 3 years, 12 months ago

why k=-1? why not k=-2 ... etc other negative terms?? it is nt said / suggested anywhere (a+b)=k=> has to be +ve integer or -1.

Ananya Aaniya - 3 years, 12 months ago

Log in to reply

Square of a rational cannot be negative. Note that for k 3 k \le -3 the expression 2794 k 3 ( k + 2 ) \frac{2794-k}{3(k+2)} becomes negative and for k = 2 k=-2 it is undefined.

Kazem Sepehrinia - 3 years, 12 months ago

Log in to reply

ah.. ok. thanks.. i ws blind.. perhaps.!!

Ananya Aaniya - 3 years, 11 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...