Cut The Knot!

An interactive column using Java applets
by Alex Bogomolny

Dot Patterns and the Sierpinski Gasket

February 1998

In the last column, we looked into simple patterns exhibited by addition and multiplication tables. The next logical step would be to investigate the tables corresponding to various operations in modular arithmetic. But let's, for a change, look into things triangular.

So, how many ways are there to define the Sierpinski gasket (also known as the Sierpinski triangle)? I counted a respectable 9 but undoubtedly there are more. I would be happy to be advised of additional ones.

  1. From Pascal's Triangle. Replace the terms of Pascal's triangle with their residues modulo 2 [GAR, PIC, WIL]. (So we are still into modular arithmetic.)

  2. Iteration Function Systems. In complex notation, the Sierpinski gasket is set of fixed points (the attractor) of the system: f1(z) = z/2, f2(z) = z/2 + 1/2, f3(z) = z/2 + (3 + I)/2 [BAR, EDG, MAN].

  3. Image of a code space. Identify a point on the gasket with a string (possibly infinite) of symbols 1,2,3 such that finite substrings are interpreted as successive applications of the functions f1, f2, and f3, starting with the origin. The resulting sequence of points will converge to (or coincide with) the given point [BAR, EDG]. The Chaos Game is an entertaining introduction to this coding.

  4. L-Systems. L-Systems have originally been known as recursive sets. Objects are combinations of linear segments. Starting with an initiator, segments on any given step are replaced in the manner prescribed by a generator [EDG, MAN].

  5. Removing tremas. In the manner of Cantor's set construction, start with a triangle. Split it into four smaller triangles by its three midlines. Remove the middle (open) triangle. Apply this process to the remaining three triangles, and so on [BAR, EDG, HIL, MAN].

  6. Barycentric coordinates. A point in a triangle is uniquely defined by three nonnegative numbers u,v,w such that u + v + w = 1. In the binary system, triplets (u,v,w) = (0.v1v2..., 0.u1u2..., 0.w1w2...) correspond to a point from Sierpinski gasket iff the binary representations of the three numbers u, v, w are such that for every index n exactly one of un, vn, or wn is equal to 1 [EDG].

  7. A curve. Being a uniform limit of curves (for it's defined by an L-System), Sierpinski gasket is known to be the image of a continuous map from [0,1]. Does anyone know how to define such a curve explicitly?

  8. 1-dimensional automata. Consider an infinite string of cells that might be in two states (say, 0 and 1). At discrete times, cells transition depending on their state and the state of their immediate right neighbor. If the two states are the same, the cell goes to state 0. Two unlike states result in 1 [WIL]. Depict consecutive states of a string in rows growing downwards.

  9. Puzzle Graphs. There is an interesting relation between the puzzle graph of the Towers of Hanoi puzzle and Pascal's triangle, and hence the Sierpinski gasket too [AHA, STE].

In the drawing area of the applet below, we have either rows of digits or circles with colors corresponding to the digits. Patterns in the drawing area are defined row-by-row starting from the upper row which consists of clickable digits (or circles.) The value p of a node is defined by values (q1 and q2) of the two nodes immediately above it according to the following formula:

p = q1 + q2 (mod N),

where N is the modulus of the arithmetic used. Think of the applet as presenting a finite view of an infinite lattice of nodes filling the lower half plane. All omitted nodes are assigned the value of 0. The applet has the following controls:

  1. Every dot in the upper row is clickable. With every click the digit (or the corresponding color) cycles through the sequence of residues 0, 1, 2, 3, ..., N-1.
  2. When creating a new pattern, you can select to get a single nonzero digit in the upper row, or a random pattern, or the whole upper row carrying the same digit (1).
  3. By checking "Multiplies" you request to associate all nonzero digits with a single color. In this case, the pattern consists of two colors only with 0 using the foreground color (so that the colors are in a sense reversed).
  4. You can also chose to see a pure triangle with a single node in the upper row. The apex of the triangle is still clickable.

(Please note that when the number of rows is close to the maximum of 50, the drawing is slow. Be patient.)

I'll make just a few observations for the case of the binary system (N = 2). Assume the rows are numbered from 0, the next being 1, and so on. For every node p, only dots in the upside down triangle above it, may affect its value. However, dots in rows 1,2,4,... - all powers of 2 - only depend on the values of their extreme ancestors - L(p) and R(p). The proof is by induction and uses the simple identity a + a = 0 (mod 2). This is why in the rows corresponding to the powers of 2 there are only 2 nonzero dots. Each of these two dots propagates in exactly the same pattern as in the triangle above them. The two patterns do not interfere until they meet at a row that is the next power of 2, and so on. We see the birth of the self-similarity characteristic of Sierpinski gasket.

In row 1, two nonzero dots are next to each other. In row 2, they are one dot apart. In row 4, there are 3 zero dots. In row 2n, there are 2n-1 of them. Therefore, we may generate lower rows of the Sierpinski gasket by repeating these patterns in the upper row. Each nonzero dot in the upper row emits a Sierpinski gasket. The whole pattern is a superposition of the gaskets.

Obviously, if the upper row contains only zero dots, all the dots below it are zero. The same is true when the upper row is filled with nonzero dots. So there are two starting arrangements for the upper row that result in the same pattern from the first row downwards. Is this true of any such pattern? Yes, of course. Two arrangements in the upper row complementary to each other (i.e., never having the same dot in the same position) generate the same pattern from the first row down.

Starting with a single nonzero dot, it is always the case that rows 2n-1 consist of a contiguous segment of nonzero dots whereas rows 2n-2 contain an alternating pattern.

If N is prime, each row number Nn contains only 2 nonzero dots. For composite N, the situation is not that simple. Much depends on the value at the apex of the triangle. With N = 6, we may observe patterns from both N = 2 and N = 3.

References

  1. [AHA] I.Aharoni, From Towers of Hanoi to Pascal's Triangle, Alefefes, #4, 1996 (in Hebrew)
  2. [BAR] M.Barnsley, Fractals Everywhere, Academic Press, 1988
  3. [EDG] G.A.Edgar, Measure, Topology, and Fractal Geometry, Springer, 1990
  4. [GAR] M.Gardner, Mathematical Carnival, Vintage Books, 1965-1977
  5. [HIL] P.Hilton, D.Holton, J.Pdersen, Mathematical Reflections, Springer, 1997
  6. [MAN] B.Mandelbrot, Fractal Geometry of Nature, W.H.Freeman & Co, 1983
  7. [PIC] C.A.Pickover, Computers, Patterns, Chaos, and Beauty, St. Martin's Press, 1990
  8. [STE] I.Stewart, Another Fine Math You've Got Me Into, W.H.Freeman & Co, 1992
  9. [WEL] D.Wells, You Are a Mathematician, John Wiley & Sons, 1995

Alex Bogomolny has started and still maintains a popular Web site Interactive Mathematics Miscellany and Puzzles to which he brought more than 10 years of college instruction and, at least as much programming experience. He holds an M.S. degree in Mathematics from the Moscow State University and a Ph.D. in Applied Mathematics from the Hebrew University of Jerusalem. He can be reached at alexb@cut-the-knot.com

Copyright © 1997-1998 Alexander Bogomolny