I would like to understand the following proof of @Hw Chu
in this question Prove that $\sqrt{\frac{n}{n+1}}\notin \mathbb{Q}$
If $\displaystyle\sqrt{\frac{n}{n+1}} \in \mathbb Q$, then $\displaystyle \sqrt{n(n+1)} = (n+1)\sqrt{\frac{n}{n+1}} \in \mathbb Q$, and since $n \in \mathbb N_{>0}$, $\sqrt{n(n+1)} \in \mathbb Z.$
Would someone elaborate this proof I mean proof step by step
If $\sqrt{\frac{n}{n+1}}\in\Bbb{Q}$ then there exists $q\in\Bbb{Q}$ such that $\frac{n}{n+1}=q^2$. Then $$n(n+1)=\frac{n}{n+1}\cdot(n+1)^2=q^2(n+1)^2,$$ so $\sqrt{n(n+1)}=q(n+1)\in\Bbb{Q}$. To see that this implies that $\sqrt{n(n+1)}\in\Bbb{Z}$, see the excellent answers to this question.