Using n = dq + r r is greater than 0 and less than d

Obtain values for n and d given the following information:

I got several of these no problem and totally understand the theorem or so I thought...

But I am having trouble with:

n=7 and d=9 I do not think this has any solution. Am I correct?

n=0 and d= 9

Since I could only come up with q =o and r=o and dividing by 0 is undefined I can not see how this has any solution either. What do you folks who get all of this say? Thanks again for being willing to assist.