Grade 5 - Partial Quotients Algorithm