Can someone help me with this math question?

<p>if n and p are both integers greater than 1 and if p is a factor of both n+3 and n+10, what is the value of p?</p>

<p>the answer is 7, but how do you get that? can someone show me the steps? thanks</p>

<p>^hah, I must have taken that practice test.
There might be a way to do it with steps, but your best bet here is to just think about it. The two numbers (n+3 and n+10) are separated by 7. Therefore, if they both share a factor, you can safely assume that 7 was multiplied one extra time to get to n+10 from n+3.</p>

<ol>
<li><p>px = (n+3) and py = (n+10)</p></li>
<li><p>py-px= (n+10) - (n+3) => p(y-x)=7;</p></li>
<li><p>7 has only two factors 1 and 7; but p>1</p></li>
</ol>

<p>A: p=7</p>

<p>ahhh i get it…thank you guys</p>

<p>Xiggi, could you explain why you do py-px??? Sorry, I don’t really get it…</p>