Let $R$ be a commutative ring with identity. What is the condition on $R$ so that the following statement is valid?
Statement: Let $f(x) \in R[x]$. Then $f(x)$ has factor $x-a$ if and only if $f(a)=0$ for some $a \in R.$
I think it's possible for $R$ to be a Unique Factorization Domain.
Thanks for looking at it.