Harmonic Oscillator in Atomic and Molecular Physics