Assume $\mathbb{P}^1_k$ is the projective line over an algebraically closed field. In Hartshorne, Chapter II.6, Corollary 6.17, Hartshorne claims that the generator of $\text{Pic}(\mathbb{P}^1_k)$ is isomorphic to $\mathcal{O}(1)$. Why?
I understand that in the case of $\mathbb{P}^1_k$, we have an isomorphism of Weil and Cartier divisors, as well as an isomorphism of Cartier divisors and invertible sheaves. I understand that these isomorphisms descend onto isomorphism of $Cl$, $CaCl$ and $Pic$. I understand that $Cl(\mathbb{P}^1_k)$ is isomorphic to $\mathbb{Z}$ and is generated by the class of a hyperplane. I know how to compute the corresponding Cartier divisor, but am struggling to show that any sheaf $\mathcal{O}(D)$ generated by a representative of $\text{CaCl}(\mathbb{P}^1_k)$ having $\text{deg}(D) = 1$ is isomorphic to $\mathcal{O}(1)$.
Any help?
Thanks in advance!
Edit: I managed to prove this fact.