One time my dad told me when he would have trouble falling to sleep he would do math problems in his head - he would do them too while walking on the treadmill. Thought it odd, but turned out my eldest daughter would do the same - also a math wizard. I would plan quilts - think of pretty patterns and fabrics, much happier than thinking about work.