On electrons and nuclei in a magnetic field