I was requested to show $2n+1$ and $n(n+1)$ are coprimes. I struggled a bit to find the correct way to show this, and I wanted to know if my proof is correct. Here's what I did.
Firstly, I will use the following lemma, whose demonstration I will skip for the sake of brevity:
$\text{Lemma}:$ Let $p$ be some prime number. Then $p|ab \implies (p|a \space \lor \space p|b)$.
$\text{My solution}:$ Assume $p$ is a prime number, $p|(2n+1)$ and $p|n(n+1)$. From $p|n(n+1)$ it follows, according to the lemma, that $p|n$ or $p|(n+1)$.
If $p|n$ then $p|2n$ and $p\nmid(2n+1)$.
If $p|(n+1)$ then $p|(2n+2)$ and $p\nmid(2n+1)$.
Hence, it is impossible for $p$ to divide $n(n+1)$ and $2n+1$. Then $2n+1$ and $n(n+1)$ share no prime in their prime factorizations, meaning they are coprime.
Is this correct? Thanks in advance.