Math and the Movies :

In this scene, Nash breaks Soviet code by discovering the patterns projected on the wall.
Later we discover that it was part of his Schizophrenic hallucination.