Given an affine algebraic variety $V$ such that $\Gamma(V,\mathcal{O}\_V)$ is a UFD, its sheaf of ring can be determined easily since one can show that:


$$\Gamma(D(f\_1) \cup \cdots \cup D(f\_n),\mathcal{O}\_V) \simeq \Gamma(D(h),\mathcal{O}\_V),$$
where $h=\mathrm{gcd}(f\_1, \ldots, f\_n)$.


It is then natural to ask whether we can characterize the set of affine algebraic varieties $V$ such that $\Gamma(V,\mathcal{O}\_V)$ is a UFD? Are there any geometric interpretations?


Thanks you!



Algebraic varieties and UFD
If and only if the Picard group is trivial. (Similar to in algebraic number theory).


Proof: Suppose $R$ is a UFD. Then every codimension 1 prime ideal is principal. Since these generate the divisor group, every divisor is principal. Suppose $R$ is not a UFD. Take an irreducible element that is not prime. This element must be contained in a codimension 1 prime ideal that is not principal (I think?). This would be a non-principal divisor.


There may be some assumptions I'm forgetting on the divisor group. 


If you think the Picard group is geometric enough, we are done. (In particular, there are topological obstructions to having trivial Picard group.)


EDIT: Francois Brunault points out that these arguments are about the Weil divisor class group, not the Picard group. These concepts agree on nonsingular varieties but differ on singular ones. Sadly, the Weil group is less geometric than the Picard group.


