2 | 4 -1 -7 18 0
| __ 8__14__14__64__
4 7 7 32 64
So you should get
You subtracted 18 and 14, instead of adding, and theres a 0 thats in the place of ax^0. So you missed one step. But other than that you got it. You can check these by going to this site:
http://calc101.com/webMathematica/long-divide.jsp
This is a calculator specifically designed for these kind of problems.