Solve the following equation over integral values of y , x :
y 3 = x 3 + 8 x 2 − 6 x + 8
Details and assumptions:
Please input your answer as the sum of all possible values for ( x , y ) .As an explicit example,if the ordered pair ( 1 , 2 ) is an answer and is the only one,input 3 but if ( 2 , 3 ) is also an answer, input 8
x , y ∈ Z +
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.
Although I don't quite understand what you wrote but I always love solutions with some CS used in them.Great job!
Log in to reply
My code uses this nice property I thought of: a is an integer iff a = ⌊ a ⌋ . When checking if k is a cube, it is significantly more efficient to check if 3 k = ⌊ 3 k ⌋ than e.g. to go through all i with i ∈ [ 1 , 3 k ] and checking if i 3 = k .
Log in to reply
I think you got me wrong xD.What I meant was that I don't make head or tails of coding in any language of any kind.But I did get what you meant in your last comment tho.We used the same approach for writing algorithms (yes I'm a new learner :D) when we wanted to see if an integer n is divisible by another integer m by checking that m n = ⌊ m n ⌋
Let y=x+a and so x^3 +3ax^2+3a^2x+a^3=x^3 +8x^2-6x=8
giving (3a-8)x^2+(3a^2+6)x +(a^3-8)=0
If a=1 no integral solutions
If a=2 we get x=0(which we discount) or x=9 and y=11
Now if the equation px^2 +qx +r=0 must have at least one positive solution then pr<0
and if a>2 by inspection we see that (3a-8)(a^3-8)>0
therefore only solution is x=9 y=11
I had written a solution. It has vanished!!!!I am checking. Well I write it again. y 3 = x 3 + 8 x 2 − 6 x + 8 , ⟹ y 3 − x 3 = 8 x 2 − 6 x + 8 = 2 ∗ ( 4 x 2 − 3 x + 4 ) . . ( 1 ) B u t y 3 − x 3 = ( y − x ) ( y 2 + x 2 + x y ) , . . ( 2 ) a n d x , y ∈ Z + . ∴ ( y − x ) = 2 i s a p o s s i b i l i t y . T r y i n g t h i s f r o m ( 1 ) a n d ( 2 ) , 4 x 2 − 3 x + 4 = ( x + 2 ) 2 + x 2 + x ∗ ( x + 2 ) S o l v i n g x 2 = 9 x . x = 0 , ∴ x = 9 a n d y = 1 1 , s a t i s f i e s t h e e q u a t i o n . a n s w e r = 9 + 1 1 = 2 0 O R : : − y m u s t b e = x + i n t e g e r a . ( x + a ) 3 = x 3 + 3 ∗ x ∗ a ∗ ( x + a ) + a 3 , ∴ a 3 = 8 , ∴ t r y a = 2 ∴ 6 x 2 + 1 2 x = 8 x 2 − 6 x . x = 0 ∴ 2 x = 1 8 , x = 9 . . . . a n d y = 1 1 . . For those using calculator,(like me) after 0 STR x:1+x STR x: use ( x 3 + 8 x 2 − 6 x + 8 ) 3 1 STOP when the return is an integer.
Your reasoning is flawed. If we rearrange your first equation, we would get y 3 − ( x + 2 ) 3 = 2 x ( x − 9 ) , which means it's a difference of two perfect cubes. It does not necessarily mean that this difference of perfect cubes must be 0.
Problem Loading...
Note Loading...
Set Loading...
I'll solve it over integers instead. Solving quadratic inequalities gives:
( x + 2 ) 3 < x 3 + 8 x 2 − 6 x + 8 for all x except when x ∈ [ 0 , 9 ] .
x 3 + 8 x 2 − 6 x + 8 < ( x + 3 ) 3 for all x except when x ∈ [ − 3 2 , − 1 ] .
For those exceptions when x ∈ [ − 3 2 , 9 ] (otherwise x 3 + 8 x 2 − 6 x + 8 is between two consecutive cubes and can't be a cube) I wrote a C++ program, but they can be checked manually. All solutions over integers are ( x , y ) = ( 0 , 2 ) , ( 9 , 1 1 ) . Of course, over Z + checking only [ 1 , 9 ] without a program is quick.