ECPP: make polyz_div perform mod n