Factors and degree of polynomial