I'm working on the following problem...
Suppose that $A$ is a Dedekind domain with fraction field $K$. $L/K$ is a finite separable extension of $A$ of degree $n$, and $B$ is the integral closure of $A$ in $L$ (so that $B$ is also a Dedekind domain). Suppose that $\mathfrak{p}$ is a nonzero prime ideal of $A$, and $B\mathfrak{p}=\mathfrak{q}^{e_1}\cdots \mathfrak{q}_r^{e_r}$ is the prime factorization of $B\mathfrak{p}$. Show that $$e_1f_1+\cdots +e_rf_r=n$$ where $f_i=[B/\mathfrak{q}_i:A/\mathfrak{p}]$.
My first question is, why does integrality over $A$ imply that $B$ is also a Dedekind domain?
My second question is, well, how to do the problem. I need an outline so that I know what I'm looking for. What results will be needed here?