I have to prove by contradiction that if $n$ is a positive integer such as $n^3-n-6 = 0$, so for any positive integer $m$ such as $m ≠ n$, we have $m^3-m-6 ≠ 0$
I am new to proofs, but I tried and here is what I did.
I first assume the opposite of the conclusion, so $m^3-m-6 = 0$
$(m-2)(m^2+2m+3) = 0$
m=2
If I do the same thing for the n function and find the solution for $n^3-n-6 = 0, n=2$.
This is a contradiction since $m=n$, but we said $m ≠ n$.
I feel like im doing something wrong here and I would like someone to tell me what it is ! (Again, I am a beginner)
It looks like your proof would be assuming $n^{3}-n-6=0, m\neq n$ (where $m,n \in \mathbb{Z}$) showing a contradiction if we had $m^{3}-m-6=0$ as well. You have shown by factoring and the fact that $m,n \in \mathbb{Z}$, that $m, n = 2$. Hence $m=n$, a contradiction.