I suppose it doesn't really matter how many lines are in the loop per se; the problem is that if you look at the formula or algorithm, there are three things that happen repeatedly. If you try to do more or less things than three things repeatedly, then you're not actually doing the formula. (In case you've forgotten how to scroll back up, the three things are: subtract two from n, square the new n, and divide that by (2+old_result) putting that answer back into old_result.) You'll also need to start old_result off at n^2 before the loop starts.