State Transition Diagrams for Modular Powers
Requires a Wolfram Notebook System
Interact on desktop, mobile and cloud with the free Wolfram Player or other Wolfram Language products.
Each point represents an integer, joined to the point representing the result of the modular power. The structure of the final "state transition diagram" varies greatly with both the multiplier and modulus.
Contributed by: Stephen Wolfram (March 2011)
Based on a suggestion by: Stan Wagon
With additional contributions by Robert Baillie
Open content licensed under CC BY-NC-SA
Mouse over points to see the integers to which they correspond. A number pointing to means the number has no root for the given .
Fermat's little theorem, Euler's theorem, quadratic residues and nonresidues, and other number theoretic phenomena are visible.