0

Show that for all prime numbers $p$ greater than $3$, $24$ divides $p^2-1$ evenly.

Since $(p+1)(p-1) = p^2-1$ we have that $\frac{(p+1)(p-1)}{24}=k$, where $k \in \Bbb Z.$

Now since $24 = 2^3 \cdot 3$ and the numerator contains always at least one even factor(?) we have that $24=2^3\cdot3\vert(p+1)(p-1).$

Is my reasoning here correct or am I missing something here?

3 Answers3

1

No its wrong you have not shown $2^3,3$ divides $p^2-1$.

For the correct proof use the hint given below.

Hint: use the fact that any prime $p\ge 5$ is of form $6k+1$ or $6k-1$

1

Let $p$ be a prime number one of the following forms and $k\in Z^+$.

If $p=3k+1$

$$p^2-1= (p-1)(p+1)=(3k+1-1)(3k+1+1)=3k(3k+2)$$

Or If $p=3k+2$

$$p^2-1= (p-1)(p+1)=(3k+2-1)(3k+2+1)=(3k+1)(3k+3)=3(3k+1)(k+1)$$

Hence $p$ can divisible by $3$

If $p=4k+1$

$$p^2-1= (p-1)(p+1)=(4k+1-1)(4k+1+1)=4k(4k+2)=8k(2k+1)$$

Or If $p=4k+3$

$$p^2-1= (p-1)(p+1)=(4k+3-1)(4k+3+1)=(4k+2)(4k+4)=8(2k+1)(k+1)$$

Hence $p$ can divisible by $8$

Therefore $p$ can divisible by $24$

Lion Heart
  • 7,073
1

When doing these kinds of problems it's best to avoid division - in this case, attempting to divide by 24.

Hints:

Since $p$ is odd, you have good information about the parity of $p\pm 1$ . One is even and the other doubly even.

Among three consecutive integers exactly one is divisible by $3$, and $p$ itself is not.

Ethan Bolker
  • 95,224
  • 7
  • 108
  • 199
  • Hmm, so if I consider $\pmod{2}$ would I have that $p^2 - 1 \equiv 0 \pmod{2}$ since two even numbers multiplied gives an even number? –  Oct 24 '20 at 14:12
  • 1
    Sure, Daniel, but that's not enough. You have to show that $p^2 - 1 \equiv 0 \pmod{8}$. And also $p^2 - 1 \equiv 0 \pmod{3}$ – PM 2Ring Oct 24 '20 at 14:16
  • Would the fact that all even numbers are either $0,1$ or $2$ $\pmod{3}$ help here? –  Oct 24 '20 at 14:19
  • @Daniel Keep the reasoning for $2$ and $3$ separate. For $3$ you want to think about $p-1, 0, p+1$. For $2$ you think about $p-1$ and $p+1$. You know those are both even. Explain why one of them must be doubly even. – Ethan Bolker Oct 24 '20 at 15:55