Part I · The puzzle · Lesson 2

Rotations that never overlap too much

Translates of a difference set meet in exactly λ points, which is the clue that leads to geometry.

You’ll learn: what happens when you turn a difference set around the clock, and why two turned copies always overlap in the same number of points.

Turning the clock

Take the set D={0,1,3}D = \{0, 1, 3\} on the seven-hour clock and add 1 to every member. You get {1,2,4}\{1, 2, 4\}: the same shape, turned one step clockwise. Add 2 instead and you get {2,3,5}\{2, 3, 5\}. Add 5 and you get {5,6,8}\{5, 6, 8\}, and since 8≡1(mod7)8 \equiv 1 \pmod 7 (see the notation box in Lesson 1), that is {1,5,6}\{1, 5, 6\}.

The translate D+jD + j is the set you get by adding jj to every member of DD, working mod vv. It is DD turned jj steps clockwise.

A turned copy has the same differences as the original, because (a+j)−(b+j)=a−b(a + j) - (b + j) = a - b. So every translate of a difference set is again a difference set with the same vv, kk, and λ\lambda.

How much do two copies overlap?

Below, D+iD + i is drawn in red and D+jD + j in green; a point in both is red with a green ring. Drag the sliders, or press j + 1 to keep turning the green copy.

However you turn them, two different translates of {0,1,3}\{0, 1, 3\} share exactly one point. The table on the right shows this for every pair at once: the entry in row ii, column jj is the number of points that D+iD + i and D+jD + j have in common. On the diagonal, where i=ji = j, a copy is compared with itself and shares all k=3k = 3 points. Everywhere else the entry is 1.

Now switch the menu to Not one: {0, 1, 2} mod 7. The table fills with 0s, 1s, and 2s. Set the sliders to i=0i = 0 and j=1j = 1: the copies {0,1,2}\{0, 1, 2\} and {1,2,3}\{1, 2, 3\} share two points. Set j=3j = 3 and they share none.

Why the overlap is always λ

The points that two sets have in common form their intersection, written with the symbol ∩\cap. So D∩(D+j)D \cap (D + j) means “the points in both DD and D+jD + j”. Let’s count them.

A point xx is in D+jD + j exactly when x−jx - j is in DD (turn it back jj steps and you land in DD). So xx is in both sets exactly when

x is in Dandx−j is in D.x \text{ is in } D \quad\text{and}\quad x - j \text{ is in } D.

That makes xx and x−jx - j a pair of members of DD whose difference is x−(x−j)=jx - (x - j) = j. It works the other way too: any pair a,ba, b in DD with a−b≡ja - b \equiv j gives the shared point x=ax = a. So shared points and pairs with difference jj match up one for one:

The number of points shared by DD and D+jD + j equals the number of times jj occurs as a difference of DD.

In a (v,k,λ)(v, k, \lambda) difference set every nonzero jj occurs exactly λ\lambda times, so DD and D+jD + j share exactly λ\lambda points. The same holds for any two different translates D+iD + i and D+jD + j: turn both back ii steps and you are comparing DD with D+(j−i)D + (j - i).

You can watch this in the widget. With D={0,1,2}D = \{0, 1, 2\} and j=1j = 1 the copies share two points, and the difference 1 occurs twice in DD (1−01 - 0 and 2−12 - 1).

The same fact, seen from the points

Turn the question around. Pick two different points xx and yy on the clock. How many translates contain both of them?

The translate D+jD + j contains xx and yy exactly when x−jx - j and y−jy - j are both in DD. Those two members of DD have difference (x−j)−(y−j)=x−y(x - j) - (y - j) = x - y. Each pair in DD with difference x−yx - y gives one such jj, and different pairs give different jj. So:

Any two different points lie together in exactly λ\lambda translates of DD.

The clue: when λ = 1, translates behave like lines

Put the two facts side by side for a planar difference set, where λ=1\lambda = 1:

  • any two different points lie together in exactly one translate;
  • any two different translates share exactly one point.

That is how lines behave in geometry. Through two points there is exactly one line, and two lines cross in at most one point. Here the “lines” are the translates D,D+1,…,D+(v−1)D, D + 1, \dots, D + (v - 1), and they are better behaved than ordinary lines: no two are parallel, since every two of them meet.

There are vv of these lines, all different: two different translates share only one point, but a translate shares all kk of its points with itself. For {0,1,3}\{0, 1, 3\} that is 7 points and 7 lines, each line with 3 points. The next lesson draws this little geometry, and finds that it is a famous one.

Try it

Let D={0,1,3,9}D = \{0, 1, 3, 9\} on the 13-hour clock. Write down D+5D + 5. Which point does it share with DD, and which pair of members of DD has difference 5?

Show the answer

D+5={5,6,8,14}D + 5 = \{5, 6, 8, 14\}, and 14≡1(mod13)14 \equiv 1 \pmod{13}, so D+5={1,5,6,8}D + 5 = \{1, 5, 6, 8\}. It shares exactly one point with DD: the point 1. The matching pair is 11 and 1−5=−4≡91 - 5 = -4 \equiv 9: indeed 1−9=−8≡5(mod13)1 - 9 = -8 \equiv 5 \pmod{13}. You can check this in the widget above by choosing {0,1,3,9}\{0, 1, 3, 9\} mod 13 and setting i=0i = 0, j=5j = 5.

The difference set workbench shows the translates of any set you build.