a fractional ideal is a product of integral ideals Let $K$ be a finite dimensional extension field of $\mathbb{Q}$ and let $R\subset K$ be the ring of integers in $K$.  If $I\subset R$ is an ideal and $k\in K$, we call $kI$ a fractional ideal.  In the book "Number Fields" by Marcus (exercise 31c chapter 3), it's claimed that a fractional ideal $kI$ can be written as a product of prime ideals $\mathfrak{p}_i\subset R$:
$$kI = \mathfrak{p}_1^{m_1}\mathfrak{p}_2^{m_2}...\mathfrak{p}_k^{m_k}.$$
I've also seen the same thing asserted in other places.
This makes no sense since the right hand side is contained in $R$ and the left hand side is not necessarily contained in $R$.  Am I missing something?  If not, what is meant here? I guess maybe just that they are equal in the class group? 
 A: The right hand side is not contained in $R$,  because the exponents $m_i$ are allowed to be negative!
One actually defines a fractional ideal $I$ as an $R$-submodule of $K$ such that for some $k \in K$ we have $kI \subset R$.
With this in mind, one sees what $\mathfrak p_i^{m_i}$ means when the $m_i$ are negative i.e. how the module structure shows up here.
The fractional ideals have an obvious multiplication, via thinking of the modules as just ideals and multiplying them. It turns out that in the given setting (and not in general) that if we take $R$ as the identity , the fractional ideals form a group under this multiplication i.e. every element has an inverse.
The ideals $\mathfrak p_i$ may be in $R$,  and are clearly fractional ideals, taking $k=1$. However, their inverses in the group of fractional ideals of $R$ under multiplication, are also fractional ideals of $R$ but not necessarily contained in $R$ : they will be ideals in $K$, however. For example, the ideal $2\mathbb Z$ is a fractional ideal of $\mathbb Q$ over $\mathbb Q$, contained in $\mathbb Z$, but its inverse is $\frac 12 \mathbb Z$, which is not contained in $\mathbb Z$ (of course, one easily checks that the product of these ideals is $\mathbb Z$).
The equality is therefore an equality of fractional ideals i.e. equality as $R$-submodules of $K$. 
What is also true is that now if you quotient out by the principal ideals, then the equivalence classes will also be equal. So that means that $[kI]_C = [\mathfrak p_1]_C^{m_1}...[p_k]_C^{m_k}$ will be true, where $[\cdot]_C$ is the equivalence class in the class group of the given ideal.
