how to do partial quotients