42 is the answer to these 5 fundamental questions
bigthink.com
bigthink.com
I remember it as them not knowing what the question was, not that they couldn't remember what it was. It's a very subtle distinction.
From Wikipedia: "Deep Thought points out that the answer seems meaningless because the beings who instructed it never knew what the question was."
It was exactly the opposite: the computer was able to come up with the answer, but insufficiently powerful to figure out the question, which is why it had to design an even more powerful computer, disguised as a planet (Earth), to compute the question.
Unfortunately (both for getting the question and for the people living on it), that computer was destroyed just before giving its output.
But it was later replaced.
Deep Thought needed to know the question to answer it, so it came up with the question. Importantly though, it never shared the question it came up with, just the answer. Earth was created to correct that shortcoming and identify the question for the humans.
“You want to find the number 216 in the world, you will be able to find it everywhere. 216 steps from a mere street corner to your front door. 216 seconds you spend riding on the elevator. When your mind becomes obsessed with anything, you will filter everything else out and find that thing everywhere.”