The density of states is calculated for a random distribution of donor-pairs of hydrogenlike impurities in three-and two-dimensional systems. Recent investigations of the hydrogen molecule in the alternant-molecular-orbital approximation are here extended. We found that the lowest excited state 'Xu (i.e., H ' H -) , which is optically connected to the ground state, plays a relevant role in the absorption spectra of semiconductor systems.