I'm struggling with this Discrete Math problem:
Prove that if x is a prime number greater than 3, then x%6 = 1 or x%6 = 5.
I've tried rewriting x in terms of odd numbers (2k+1), but didn't get far, and the contrapositive doesn't seem much more helpful.
Any number, $x$, can be written as one of the following:
$6k$
$6k+1$
$6k+2$
$6k+3$
$6k+4$
$6k+5$
If $x$ is a prime number, it cannot be $6k$ or $6k+2$ or $6k+3$ or $6k+4$ because they have factors, 6, 2, 3 and 2 respectively.
Therefore, if $x$ is a prime number, it must be one of $6k+1$ or $6k+5$.
Now, $(6k+1)\% 6 = 1$ and $(6k+5)\%6 = 5$.
Hence, the claim is true.