Frame, M., Johnson, B., and Sauerberg, J., "Fixed points and Fermat: a dynamical systems approach to number theory," American Mathematical Monthly, 107 (2000), 422-428.