Do x ko chia hết cho 3 \(\Rightarrow\left[{}\begin{matrix}x=3k+1\\x=3k+2\end{matrix}\right.\)
- Với \(x=3k+1\Rightarrow x^2-1=\left(3k+1\right)^2-1=3\left(3k^2+2k\right)⋮3\)
- Với \(x=3k+2\Rightarrow x^2-1=3\left(3k^2+4k+1\right)⋮3\)
Vậy \(x^2-1⋮3\)