Immersion energies for an impurity in a homogeneous electron gas with a uniform positive background charge density have been calculated numerically using density functional theory. The numerical aspects of this problem are very demanding and have not been properly discussed in previous work. The numerical problems are related to approximations...