In any polynomial functions, if p/q is a rational zero, p is a factor of the constant term and q is a factor of the leading coefficient.
From the problem, the constant term is a0 and the leading coefficient is an
Therefore, the answers are :
p is a factor of a0
q is a factor of an