This question already has an answer here:
I'm looking for a short story about the first human trip to Mars.
In it, the further the astronauts go from Earth the smarter they get. At the halfway point they have super-intelligence and realize that there are entities on Earth that suppress our intelligence. They then start losing their intelligence as the Mars based entities begin to exert their influence on them.