From: Yannick Grams Date: 2007-03-05T17:16:38+09:00 Subject: Maths in Ruby Hello to everyone! 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. Thanks! _________________________________________________________________ Advertisement: Meet Sexy Singles Today @ Lavalife - Click here http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Flavalife9%2Eninemsn%2Ecom%2Eau%2Fclickthru%2Fclickthru%2Eact%3Fid%3Dninemsn%26context%3Dan99%26locale%3Den%5FAU%26a%3D23769&_t=754951090&_r=endtext_lavalife_dec_meet&_m=EXT