We consider piecewise linear functions g(x) going up and down p times. The fixed points of gⁿ are in bijection with elements of the finite field with pⁿ elements, where orbits under g are in correspondence with irreducible polynomials over the field.
Visualization by Emerson León