Here is the question I want to answer:
Let $R = \mathbb Z[\sqrt{-5}]$ and $ I = (2, 1 + \sqrt{-5})$ be an ideal of $R$.
Show that $I$ is not a free $R-$module.
But here in this question How to show that an $\mathbb{Z}[\sqrt{-5}]$-module is not free? in its answer the author said that: to prove that it is free of rank 1, we should try to prove that no element of $R$ divides both $2$ and $1 + \sqrt{-5}.$ could anyone explain to me why this will prove that it is not free of rank $1$?
Here is the answer I am speaking about:
It is generated by two elements so if it were free, it would be free of rank $1$ or $2$.
If it were free of rank $1$, it would be generated by a single element: you can then try to prove that no element of $R$ divides both $2$ and $1+\sqrt{-5}$.
If it were free of rank $2$, then $2$ and $1+\sqrt{-5}$ would have to be free generators (can you see why ?). You can then try to prove that this is not the case, that is, that $2$ and $1+\sqrt{-5}$ are not linearly independent.
EDIT:
I know that we are using the contrapositive of this statement for the proof:
$I$ is free $R$ module $\implies$ I is a principal ideal.
And I know that we are trying to show that $I$ is not principal.