In the 90s i saw an episode of a sci fi series, the episode is about an inmate that travels (is made to travel) to another world/dimension several times. It is something of an experiment. Each time he gets back with a part of a mathematical formula. I don't recall much more other than that the inmate transforms a bit more into a blue alien each time he returns. Somehow the episode sticks with me, as i can't seem to find any reference online. I suppose its something of an Outer Limits episode but thus far i have not found it.
Thanks in advance!