Answer :
p is a factor and (q-1) is a factor
when you have it to r power, you have r more factors
the p is not affected so you have r+1 factors
when you have it to r power, you have r more factors
the p is not affected so you have r+1 factors