If a and b are positive integers and a > b , then what is the sum of all possible values of a such that a + b = 2 0 0 9 ?
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.
Can you explain why those are the only solutions? Why can't we have others?
Log in to reply
Well Calvin can't we have 2009,0 as the answer?I want my rating back......
Without loss of generality, let:
a = 2 0 0 9 − b
Squaring both sides will provide
a = 2 0 0 9 + b − 2 2 0 0 9 b
Notice that 2 0 0 9 = 7 2 × 4 1
Rewrite ad
a = 2 0 0 9 + b − 2 7 2 × 4 1 × b
The L H S must be positive integers and so do the R H S . Thus, 7 2 × 4 1 × b must be an integer. In other words, 7 2 × 4 1 × b is a perfect square.
Let 7 2 × 4 1 × b = k 2 for any integer k
7 2 is definitely a perfect square since the exponents is divisible by 2. 4 1 is not a perfect square.
b may have more than one solution, or even no solutions. Since 7 2 × 4 1 is not a perfect square, we have to multiply (the smallest solution) 4 1 to make it a perfect square. But, there is a case that there exist a larger solution than 4 1 . Thus, to make a guarantee of perfect square, the general solution of b is
b = 4 1 × l 2 for any l
Now, with a little logic, we find that
2 0 0 9 > b > 0
Since a will be any non-positive integers if b > = 0
Now, rewrite as
0 < b < 2 0 0 9
0 < 4 1 l 2 < 2 0 0 9
0 < l 2 < 4 9
From inequality above, the solutions of l is 1 , 2 , 3 , 4 , 5 , 6 and makes b the solution 4 1 × 1 2 , 4 1 × 2 2 , 4 1 × 3 2 , 4 1 × 4 2 , 4 1 × 5 2 , 4 1 × 6 2
By trial and error, we have all possible a solution. They are 1 4 7 6 , 1 0 2 5 , 6 5 6
Finally, the sum of all possible values of a is 1 4 7 6 + 1 0 2 5 + 6 5 6 = 3 1 5 7
Factorise 2009 --- 7x7x41 so root of 2009 = 7* root 41
Possible values of a and b
6* root 41 + root 41
5* root 41 + 2 * root 41
4 * root 41 + 3 * root 41
Thus a =
36*41 = 1476
25*41= 1025
16*41= 656
Sum of all values of a = 3157
Great problem as always!But I recommend you to use Latex for your solutions...The first step is to wrap your math in these braces \ ( \ ) without the spaces between "\" and "(".You can find the rest of the syntax here
Log in to reply
@satyen nabar I've noticed that you seem to know Latex syntax, but just need to know to add the brackets.
I just wrote Elegant Roots 2 , but the tag didn't work :/
Log in to reply
@ mentions currently do not work within problems / notes. They only work in the comments section.
1 2 3 4 5 6 |
|
1 2 3 |
|
Sum = 6 5 6 + 1 0 2 5 + 1 4 7 6 = 3 1 5 7
I used a dictionary so I only had to calculate the square root 2009 times instead of four million times. The rest is brute force.
Python:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
|
Similar solution, but smaller code!
Problem Loading...
Note Loading...
Set Loading...
Writing in latex the solution of Satyen Nabar, We have 2 0 0 9 = 7 ⋅ 4 1 So for a>b and both positive integers a can be 6 ⋅ 4 1 , 5 ⋅ 4 1 , 4 ⋅ 4 1 . So sum of all possible values of a is 1 4 7 6 + 1 0 2 5 + 6 5 6 = 3 1 5 7