  Two interacting electrons in a harmonic oscillator potential under the
influence of a perpendicular homogeneous magnetic field are considered.
Analytic expressions are obtained for the energy spectrum of the two- and
three-dimensional cases. Exact conditions for phase transitions due to the
electron-electron interaction in a quantum dot as a function of the dot size
and magnetic field are calculated.
