How many positive integer solutions ( a , b ) does the equation a 2 + b 2 + ( a + b ) 2 = b 3 have, where 0 < b < 2 0 1 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.
Why do we require for ( 2 b − 3 ) to be an odd perfect square? Why not even? And I think you should elaborate more on why do you rearrange the equation like that?
Log in to reply
I have shown that the integer 2 b − 3 is a rational square, hence an integer square. Since 2 b − 3 is odd, it must be an odd square.
Log in to reply
Can you explain more about how you got a = n b . And how you deduced about n that is less than 3 1
Disprove my statement or agree that the question is wrong
Log in to reply
I just did disprove it. I am not saying that b is odd. I am saying that 2 b − 3 is odd.
You can arrive to the same conclusion by solving the original equation as quadratic equation with parameter b. As b must be even and a=b/2(-1 + (2b-3)^(1/2)), 2b-3 must be an odd perfect square.
Log in to reply
a variant is 2a^2 + 2b^2 + 2ab = b^3 , and by dividing by b2 we conclude that --> a^2 +2ab = kb^2, otherwise it will have intenger vs. rational in equality. k cannot be positive, unless 0 or 1. for k negative (k+1) must be a square otherwise the solution of the last second degree equation will not have solution ... so we count. Anyway, thumbs up for Laszlo Mihalyi
I didn't get this Re write the equation as 2(a+b)^2 =b^3 +2ab
If be is odd perfect square then the Right side is odd but the LHS is even...😵😵😵
Log in to reply
2 b − 3 must be odd, but if you follow the argument through, it turns out that b = 2 ( n 2 + n + 1 ) must be even.
If we re-arrange the equation we get 2 ( a 2 + b 2 + a b ) = b 3 , so b must be even. Let us make the substitution: a = x m and b = 2 m , where m is integer. From the original equation we have a new one, 2 x ( 1 + 2 x ) + 1 = m . We see that for m to be an integer, x has to be an even integer (this follows from 2 x ( 1 + 2 x ) = m − 1 = i n t e g e r ), so x = 2 n , m = n 2 + n + 1 and b = 2 ( n 2 + n + 1 ) . Starting from n = 1 we have to go up to n = 3 2 to get a b > 2 0 1 7 . There are 31 solutions.
Cheater's solution:
First we need to solve for a . Since we are cheaters and don't actually know math, this is easiest to do using wolfram alpha: like so
As we can see, a = 2 1 ( b 2 ( 2 b − 3 ) − b ) . But wait, what about the other solution? Well... that other solution will never give us a positive integer, so we can safely ignore it.
So, now that we know a and we have a reasonable number of possible b values, we can write a program to find the b values that give us a.
The following code outputs 3 1 .
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
|
Thanks pero pataka lang m,o!!
Basically what I did, except in R.
A direct and unrefined solution:
Expand: a 2 + b 2 + a 2 + 2 a b + b 2 = b 3
Gather and divide by 2: a 2 + a b + ( b 2 − 2 b 3 ) = 0
Solve for a : a = 2 − b ± 2 b 3 − 3 b 2 = 2 b ( ± 2 b − 3 − 1 )
Since a is positive, only + possible in ± .
Hence 2 b − 3 is an integer > 1 (if it equals 1 then a = 0 ).
n = 2 b − 3 ⟹ b = 2 n 2 + 3 .
Note that n must be odd and ≥ 3 . This means b will always be even (a odd square +3 is always divisible by 4) and hence b / 2 is always an integer. So these numbers (i.e. ( 4 n 2 + 3 ( n + 1 ) , 2 n 2 + 3 ) ) are exactly the integral positive solutions.
Look what is the largest n : 2 n 2 + 3 < 2 0 1 7 ⟹ n ≤ 2 ⋅ 2 0 1 7 − 3 ≈ 6 3 . 5
There are 31 odd numbers between 3 and 63. So the answer is 31.
We have 2 (a^2 + b^2 +ab) = b^3. This means b has to be an even number. Let b be 2N. Solving the quadratic equation in a, we get a^2+2Na +(4N^2 -4N^3) = 0. This yields, a = -N + N sqrt(4N-3), taking only the positive values of a. Since a is a positive integer, 4N-3 has to be a perfect square. Let 4N-3 = K^2. Knowing that 0<N<=1008, we see that K can be only up to 63. Also every 2nd value of K from 1 to 63, yields integer solutions. Also K =1 is not valid as that yields a = 0 which is not positive. Hence we conclude that we have (63-1)/2 = 31 distinct solutions.
int main() { int a,b,x,y=0;
for(a=1;a<=201217;a++)
{
for(b=1;b<2017;b++)
{
x=pow(a,2)+pow(b,2)+pow((a+b),2)-pow(b,3);
if(x==0)
y++;
}
}
cout<<"\n\n"<<y;
return 0;
}
Problem Loading...
Note Loading...
Set Loading...
The equation can be written as ( 2 a + b ) 2 = b 2 ( 2 b − 3 ) so we require 2 b − 3 = ( 2 n + 1 ) 2 to be an odd perfect square. Thus we need b = 2 ( n 2 + n + 1 ) a = n b and since a , b ≥ 1 and b < 2 0 1 7 we deduce that 1 ≤ n ≤ 3 1 . Thus there are 3 1 solutions.