A simple answer to the contest at http://codegolf.com/polynomial-division The goal is to have shortest code possible. The base code provided in first version is long and understandable though not heavily commented. Feel free to "improve"