On this page
Take a picture of a cat, apply one simple rule to every pixel, and repeat. Within a few steps the cat looks like random noise. Keep going and, at one exact step, the cat comes back, every pixel in place. The rule is named after the Russian mathematician Vladimir Arnold, who used it in his 1967 book with André Avez, *Problèmes ergodiques de la mécanique classique* (Wikipedia, Arnold's cat map).
What is Arnold's cat map?
Arnold's cat map is the rule Γ(x, y) = (2x + y, x + y) mod 1 on the unit square (Wikipedia). "Mod 1" keeps only the fractional part, so a point that runs off one edge comes back on the opposite edge. Gluing opposite edges like this turns the square into a torus, the surface of a doughnut.
In matrix form the map multiplies (x, y) by M = [[2, 1], [1, 1]]. The same page writes M as the product of two shears, [[1, 1], [0, 1]] and [[1, 0], [1, 1]]. If affine maps are new to you, our guide to what affine transformations keep and what they change is a good warm-up.
Why does the cat turn into noise?
The eigenvalues of M tell the story. Its trace is 3 and its determinant is 1, so the eigenvalues solve λ² − 3λ + 1 = 0, which gives λ = (3 ± √5)/2, about 2.618 and 0.382.
Along one direction, every step stretches lengths by about 2.618.
Along the perpendicular direction, every step shrinks them by about 0.382.
The two numbers multiply to 1, the determinant, so areas stay the same.
The mod 1 then cuts the long, thin cat and folds it back into the square. Stretch, cut, fold, repeat: neighbouring pixels end up far apart, and soon the image looks like noise. Formally, the map is ergodic and mixing, and it is an Anosov diffeomorphism, a standard example of chaos on a torus (Wikipedia). Sensitivity to starting points is also the theme of our post on the Lorenz attractor and the butterfly effect.
Why does the image come back on a pixel grid?
A real picture is not a continuous square. It is an N × N grid of pixels with whole-number coordinates, and the map becomes (x, y) ↦ (2x + y, x + y) mod N. Because the determinant is 1, the inverse matrix [[1, −1], [−1, 2]] also has whole-number entries, so no two pixels land on the same spot. The map only shuffles a finite set of pixels, and any shuffle of a finite set, repeated, must return to the start.
How long that takes depends on N. The OEIS sequence A281230, "Period of the discrete Arnold cat map on an n X n array", lists 10 steps for a 5 × 5 grid and 30 steps for a 10 × 10 grid. Wikipedia's sample picture of 150 × 150 pixels returns after 300 iterations, and a 74-pixel-wide image of cherries takes 114 iterations, appearing upside down at the 57th (Wikipedia).
Freeman Dyson and Harold Falk showed in 1992 that the period on an N × N grid never exceeds 3N (Dyson and Falk, *American Mathematical Monthly*). The same OEIS entry notes that for N of 3 or more the period is half the Pisano period, the length after which Fibonacci numbers mod N repeat. Our post on Pisano periods and why Fibonacci numbers mod n repeat explains that cycle.
Worked example: a 5 × 5 cat, by hand
Powers of M are Fibonacci numbers: Mⁿ = [[F(2n+1), F(2n)], [F(2n), F(2n−1)]], with F(1) = F(2) = 1. So:
M² = [[5, 3], [3, 2]] and M⁴ = [[34, 21], [21, 13]].
M⁵ = [[89, 55], [55, 34]].
Mod 5 this is [[4, 0], [0, 4]], which is −I. After 5 steps every pixel (x, y) sits at (−x, −y): the cat is rotated half a turn.
Apply −I twice and you get I. After 10 steps the cat is back, matching OEIS.
Check it on one pixel. Starting from (1, 0) on the 5 × 5 grid, the steps are (2, 1), (0, 3), (3, 3), (4, 1), (4, 0). The fifth point is (−1, 0) mod 5, just as M⁵ ≡ −I predicts.
What does this teach you for maths exams?
The cat map packs four ideas from school and early university maths into one example: a 2 × 2 matrix, its eigenvalues from the trace and determinant, the determinant as the factor by which area scales, and arithmetic mod N. If any of those feels shaky, the Fermi Concept Library covers every concept in physics, chemistry, biology, mathematics and computing, so you can revisit determinants and eigenvalues before you try the 3 × 3 count. And the Fermi Simulation Lab has interactive simulations for the ideas that are easier to see than to read.



