Yannick Grams schrieb:
> I have a mathematic problem I need to solve, and it involves finding the 
> values of three consecutive numbers, x, y and z. I need to be able to 
> find every instance of these from negative one million (-1,000,000) up 
> to one million (1,000,000). They must follow the following equations:
> 
> x + y + z = 5
> x + y - z = 7
> (x - y)(x - y)(x - y)  + (y - z)(y - z)(y - z) = (x - z)(x - z)(x - z)
> 
> I'm completely and utterly stumped. I intend on solving this via Ruby, 
> as doing it on pen and paper might take a while. ;) If anyone has any 
> suggestions, I'd love to hear them.

Yannick, you don't need Ruby to solve this, just some basic Mathematics.

Regards,
Pit