Question 887515
Euclidean division says a = bq + r, where q is the quotient, r is the remainder, b is dividend and in our problem a = p, therefore
p = 9b + 7
now with b = 1, then p = 16
now b = 3
16 = 5*3 +r
r = 16 - 15 = 1