Something like Myst could be a very fun implementation of this. Have some of the puzzle be solved by manipulation of the environment using graphing, or have actual mathematical puzzles.
I bet a word problem would be much more interesting if you play it out