quotient of polynomial and gcmf of 2am +62am