hmmm na... simple logic... first realise that since lhs is cubes... try to break rhs into a factor having a cube.. so i write 2008 as 8*251 that clearly tells me that each entity in lhs is an even number so new equation is x^3+y^3+z^3 = 251
now said that... u do agree max value can be 6.. since else cube wld be greater than 251 so set z=6 we directly get one set as 6,3,2
now, dont roll yo eyes saying its hit and trial... see that i wnt go for z=4 at all... now think why so... why ? :)
all one need to check is for z=6 and z=5 both which comes out in a min thats all....
again think why i say z=4 case makes no sense at all...
so ur answers are 12,6,4 and 10,10,2
i had removed two earlier if u remember... :) cheers enjoy.....
is the answer 1 (4,6,12)????
ReplyDeleteno
ReplyDelete2 pairs (12,6,4)(10,10,2)
ReplyDeleteany general way to solve it...??
ReplyDeleteor u just reached the conclusion by making an analogous C program or by hit and trial??
hmmm na... simple logic...
ReplyDeletefirst realise that since lhs is cubes... try to break rhs into a factor having a cube..
so i write 2008 as 8*251
that clearly tells me that each entity in lhs is an even number
so new equation is
x^3+y^3+z^3 = 251
now said that... u do agree max value can be 6.. since else cube wld be greater than 251
so set z=6 we directly get one set as 6,3,2
now, dont roll yo eyes saying its hit and trial... see that i wnt go for z=4 at all... now think why so... why ? :)
all one need to check is for z=6 and z=5 both which comes out in a min thats all....
again think why i say z=4 case makes no sense at all...
so ur answers are 12,6,4 and 10,10,2
i had removed two earlier if u remember... :)
cheers enjoy.....
feel free to ping :)
ReplyDelete