The answer is i=x+1.
Proof: i starts from 0 and grows by 2, so always remains even. At the last step i is still <x and after this step i>=x. i cannot =x (even i and odd x), so i>x and x>i-2. Subtract (i-2) and obtain
2>x-i+2>0, so odd (x-i+2)=1 and i=x+1.
Please ask if anything is unclear.
15 Million Students Helped!
Sign up to view the full answer