Interacting electron gas in a strong magnetic field