0

I've been assigned a proof by contrapositive for:

If $a$ is a natural number and $a, a + 2$, and $a + 4$ are prime, then $a = 3$.

So, the contrapositive I've produced is as follows:

If $a \neq 3$, then it is not true that $a, a + 2$, and $a + 4$ are prime.

How would I go about proving this?

N. F. Taussig
  • 76,571
trm_
  • 13

2 Answers2

4

Let's do it looking at residue of $a$ modulo $3$:

If $a=3k$, for some $k>1$, then $a$ is not prime. Thus suppose $a\ne 3k$.

Now if $a=3k+1$, then $a+2=3k+1+2=3(k+1)$ is not prime.

If $a=3k+2$, then $a+2=3(k+1)+1$ and $a+4=3k+6=3(k+2)$ and $a+4$ is not prime.

Therefore, the only posibility for $a$ is $a=3$.

Qurultay
  • 5,224
0

Alternatively, you can use induction to prove that $a$, $a + 2$, or $a + 4$ is a multiple of $3$:

If $f(a)=a(a+2)(a+4)$, then $f(a+1)-f(a)=3 (a^2 + 5 a + 5)$.

lhf
  • 216,483