I am trying to self-study mathematics and I got stuck in this question. I did not find similar questions to this elsewhere so I am asking this one.
Also if you may please answer this follow up question:
Prove using mathematical induction that $x^2 - 1$ is divisible by $3$ for all positive integers $x$ that are not divisible by $3$.
Prove that for all positive integers $x, \ x$ is not divisible by $3 \iff {x^2 - 1} $ is divisible by $3$.
Hint : One of the numbers $x-1,x,x+1$ must be divisible by $3$