Extremal properties of the Harris-Foulkes functional and an improved screening calculation for the electron gas | Synapse