Let $o$ be a one-dimensional noetherian integral domain, and $a$ be a non-zero ideal of $o$. Suppose $p$ be a prime ideal containing $a$. Show that $o/o \cap ao_p= o_p/ao_p$. (Here $o_p$ is the localization of $o$ at $p$.)
The following is my idea: Let $f$ be the canonical mapping $o$ to $o_p/ao_p$, then the kernel of $f$ is exactly $o \cap ao_p$, but why is it surjective? I know this is equivalent to $o+ao_p=o_p$ but I don't know how to prove it.
Thanks in advance!
In fact, by considering a primary decomposition of $\mathfrak a$, we may assume that $\mathfrak a$ is $\mathfrak p$-primary (since $\mathfrak a\mathcal O_{\mathfrak p}=\mathfrak q\mathcal O_{\mathfrak p}$ for some $\mathfrak p$-primary ideal $\mathfrak q$), and now all is clear: $\mathcal O\cap\mathfrak q\mathcal O_{\mathfrak p}=\mathfrak q$ and $\mathcal O/\mathfrak q$ is an artinian local ring with the maximal ideal $\mathfrak p/\mathfrak q$, so $\mathcal O/\mathfrak q\simeq(\mathcal O/\mathfrak q)_{\mathfrak p/\mathfrak q}\simeq\mathcal O_{\mathfrak p}/\mathfrak q\mathcal O_{\mathfrak p}$.