if p-q=4 and r is the number of integers