3

For what odd primes $p$ does $p - 2 \mid p + 2$?

For example, $p = 3$.

Are there any others?

Bill Dubuque
  • 272,048

3 Answers3

10

Notice that $\frac{p+2}{p-2}=1+\frac{4}{p-2}$, which is less than $2$ for $p>6$.

So we must only check $p=3$ and $5$ and only the first works.

Asinomás
  • 105,651
5

We can look at the problem for any $p\ge2$, regardless of prime or not. Then taking $a:=p-2$ and $b:=p+2$, we can see that $a=b-4$, so $a\mid b \implies a\mid 4$, giving $a=\{1,2,4\}$ as the only possibilities, and thus $p=\{3,4,6\}$ as the corresponding solutions.

Of course only one of these is prime: $p=3$.

Joffan
  • 39,627
3

Notice that $$\gcd(p - 2, p + 2) = \gcd(4, p + 2) = \gcd(4, p - 2)$$ so that if $p - 2 \mid p + 2$, then $$\gcd(p - 2, p + 2) = p - 2 = \gcd(4, p - 2).$$

Since $p$ is an odd prime then $p \geq 3$ and either $p \equiv 1 \pmod 4$ or $p \equiv 3 \pmod 4$.

Consequently, equality can only occur in $$\gcd(p - 2, p + 2) = p - 2 = \gcd(4, p - 2)$$ when $p = 3$.

QED