THE WAVE THAT ISN'T THERE
Every pendulum swings on its own, slightly faster than its neighbor. Nobody coordinates them. Watch the waves appear, and the whole row snap back into line at exactly the end of the cycle.
the whole trick
Pendulum k completes N + k swings in one cycle. N is 20 here and the cycle is 40 seconds by default, so the first pendulum makes 20 swings, the next 21, and so on. That is all. No two ever get told anything.
why it snaps back
After exactly one cycle every pendulum has made a whole number of swings, so every one is back where it started, together. Halfway there, neighbors are half a swing apart in a way that alternates, and the row splits into two interleaved waves. At one quarter and three quarters you get a braid; at other fractions, fractions of the count line the bobs into 2, 3, 4 and more phase groups. Scrub the time slider to find them. The readout names the pattern when the pendulums fall into a simple one.
honest simplifications
These are ideal small-angle pendulums, which keep one period regardless of how wide they swing. A real rig has to cut each string to a length proportional to 1/(N+k)², so it swings at the right rate, and friction slowly spoils the realignment. Here nothing decays.