Residue Designs, String Art, and Number Theory

Year: 2023 Authors: David Richeson

Core claim

Residue designs become single-string constructions exactly when n is prime and a is a primitive root of n.

Topics

residue designs, string art, primitive roots, modular arithmetic, epicycloids

Domains

number theory, group theory, modular arithmetic, Euler’s totient function, string art, mathematical visualization, geometric design, cardioid and nephroid forms

Methods

mod n iteration, primitive root testing, brute force checking, table of prime cases

Media

string, nails, circle on paper, cardboard, ruler and pencil

Paper text

The text below is the locally extracted OCR/Markdown version of the paper. Raw PDF files remain local and are not published here.

Bridges 2023 Conference Proceedings

Residue Designs, String Art, and Number Theory

David Richeson

Dickinson College, Carlisle, Pennsylvania; richesod@dickinson.edu

Abstract

To make string-art cardioids and nephroids, we must divide a circle into equal parts and connect all points to (modulo ). In this article we show that the best choice of is one for which is prime and is a primitive root of .

The cardioid is a beloved mathematical object. This heart-shaped curve is an epicycloid; it is traced by a point on a circle rolling around the circumference of another circle of the same radius. It is the caustic in the bottom of a coffee cup when light shines in from the brim of the cup. The main bulb of the Mandelbrot set is a cardioid. Given a point on a circle , the envelope of circles with center on passing through is a cardioid. It can even be formed as the envelope of lines. It is the last of these that will be our focus.

Begin by placing equally-spaced points on a circle. Number them 0 through . Draw line segments between and for all , doing arithmetic modulo . The envelope of these lines is a cardioid. The larger the , the more clearly we see the curve. Figure 1(a) shows a cardioid obtained with divisions. This construction clearly lends itself to string art, as shown in Figure 1(b); in this case there are equally-spaced nails with red string running between them.

img-0.jpeg (a)

img-1.jpeg (b)

img-2.jpeg (c) Figure 1: (a) A cardioid formed with , (b) a cardioid made from string and nails, and (c) a nephroid made using and .

We can generalize this procedure by choosing an integer and drawing line segments (or running string) between and (mod ) for all . Figure 1(c) shows the case and . The envelope of these lines is a nephroid. More generally, for a given , the envelope is an epicycloid with cusps. In the literature, such figures are known as residue designs (see, e.g., [5], [3], [4], [2]).

To make one of these designs on paper, simply divide a circle into any number of equal parts and draw all required lines with a ruler and pencil. Making one out of string is more complicated—and more interesting.

Let’s look at the process required to make the cardioid in Figure 1(b). After placing the 59 nails, start with the string tied to nail 1 and run it to 2, then to 4, then to 8, and so on (doing all arithmetic modulo 59).

The string will eventually return to the first nail. (The complete sequence is 1, 2, 4, 8, 16, 32, 5, 10, 20, 40, 21, 42, 25, 50, 41, 23, 46, 33, 7, 14, 28, 56, 53, 47, 35, 11, 22, 44, 29, 58, 57, 55, 51, 43, 27, 54, 49, 39, 19, 38, 17, 34, 9, 18, 36, 13, 26, 52, 45, 31, 3, 6, 12, 24, 48, 37, 15, 30, and 1.) Notice that the string does not reach nail 0, which is good since is a dead-end.

What if we tried to recreate the design in Figure 1(a) with 54 nails and string? The sequence would start with 1, 2, 4, 8, 16, 32, 10, 20, 40, 26, 52, 50, 46, 38, 22, 44, 34, 14, 28, and 2, and then it would enter a cycle of length 18. Two-thirds of the nails would remain unvisited.

These examples prompt a question: which integers will yield a string art design requiring one string? Restated mathematically, will when computed modulo ? Our earlier examples show that for and the answer is yes, for and the answer is yes, and for and the answer is no. This question is not a geometric one but a number theoretic one. Really we can rephrase the question as: For what integers is it the case that

  1. , but
  2. for ?

The set of integers modulo , which we will write as , is a group under addition—0 is the additive identity, every element has an additive inverse, and so on. We can also multiply elements in . But is not a group under multiplication because not every element has a multiplicative inverse. For instance, 0 does not have a multiplicative inverse for any ; 2 does not have a multiplicative inverse for any even value of ; and so on. The elements of that have multiplicative inverses are precisely those that are relatively prime to . This set, which we denote , is a group under multiplication. The number of elements between 1 and relatively prime to , and hence the order of the group , is , where is Euler’s totient function.

Returning to our question, then, we would like to find integers so that

  1. , and
  2. is a generator of the group .

We know that property (1) is satisfied only when is prime. So, our string art must, at a minimum, have a prime number of nails. In this case, is a cyclic group with generators, and a generator is called a primitive root of . Thus, we can rephrase our central question yet again: For what integers , with prime, is a primitive root of ?

This question has a long an interesting history. Gauss introduced primitive roots in his 1801 Disquisitiones Arithmeticae. In 1927 Emil Artin conjectured that if is an integer not equal to and is not a perfect square, then it is the primitive root of infinitely many prime numbers. So assuming Artin’s conjecture is true, if we want to obtain a cardioid () we have infinitely many to choose from so the circle of nails can be strung with one string. The same is true when is 3, 5, 6, 7, and 8. But Artin’s conjecture does not apply when is a square like 4 and 9. This conjecture is still an open problem for all . (Interestingly, in 1967 Christopher Hooley proved that Artin’s conjecture would be true if the generalized Riemann hypothesis is true ([1]).) Finding primitive roots for prime numbers is central to some number-theoretic encryption schemes, although unlike for our string art, these situations are faced with extremely large prime numbers. In general, finding integers for which is known as a discrete logarithm problem.

For small and , it is not too difficult to use a brute force approach to check whether is a primitive root of —with pencil and paper, using an Excel spreadsheet, using WolframAlpha, or with a little computer code. For larger we can use tools from number theory to streamline the process, but we will not discuss those techniques here. It is also possible to look online. The On-Line Encyclopedia of Integer Sequences has entries for the primes with primitive roots 2 (sequence A001122), 3 (A019334), 5 (A019335), 6 (A019336),

Residue Designs, String Art, and Number Theory

7 (A0193377), 8 (A019338), 10 (A001913), and more. For instance, the primes less than 100 that have primitive root 2 are 3, 5, 11, 13, 19, 29, 37, 53, 59, 61, 67, and 83.

What if we want to make a nephroid using a circle of 67 nails? A quick check shows that 3 is not a primitive root of 67. Indeed, 3 generates the proper subgroup

of . For our string art, that means we could use one piece of string to connect these 22 values. This string is shown in blue in Figure 2.

img-3.jpeg Figure 2: The case of and requires three strings

img-4.jpeg

img-5.jpeg

img-6.jpeg

This leaves 45 nails unvisited. Fortunately, because is a subgroup of , we can partition the group into disjoint cosets. (In [4], Moore also used ideas from group theory, including cosets, to describe the mathematics of residue designs.) In particular, take any value not in , 2, say, and multiply every element of by this value. This produces the coset

An equivalent way of obtaining this coset, and one more useful to us, is to start with 2 and repeatedly multiply by 3, obtaining , which we then reduce modulo 67. This means that after tying off our first string, we can start a second string at a value that doesn’t already have string, 2 in this case, and repeatedly multiply by 3 to connect all the values in the coset. This string pattern is shown in green in Figure 2. Finally, take any element not in either or , 4, say, and multiply every element of by this value to obtain

The corresponding string pattern is shown in red in Figure 2.

Table 1 lists all the primes less than 100 along the top. Each row corresponds to an -value. Then each entry in the table is the index of the subgroup generated by in the group . Equivalently, it gives the number of strings required to make the corresponding piece of string art. The cells colored green are those that can be strung with one piece of string. That is, they correspond to the primitive roots of the prime .

Readers are encouraged to make their own string art. Using a board, nails, and string is one method. A more accessible approach is to use string and cardboard with slits cut along the rim, as shown in Figure 3. One thing to be aware of with this approach is that when we complete the first circuit with the string, the design shows only half the lines because half run along the back side. So we need to follow the circuit a second time with the string sitting on the opposite side of the cardboard. In the case of the cardioid in Figure 3(a), for instance, because is even, the string running from 30 to 1 would be behind the cardboard, and the following segment would be above the cardboard—just like the first segment. We want the sides switched,

Richeson

Table 1: The number of strings required for a disk with nails (columns) using the multiplicative factor (rows). The green cells indicate the -values that are primitive roots of .

357111317192329313741434753596167717379838997
2112112121612321111282182
311241121125121263261212
422224222624622222282284
5123121210121112231412121
631112225911422112221118
7111614241722211131211
81323216323211332246186
9242222241022221262122224
105211112128214112296221

so instead, run the string from 30 to 2, and then continue 2, 4, 8, and so on. When we reach 1 again, the cardioid is finished. According to Table 1, the -values 53, 59, and 83 would be good choices for a variety of -values, but the reader is encouraged to use the methods in this article to help choose their optimal value.

img-7.jpeg (a)

img-8.jpeg (b) Figure 3: (a) A cardioid made from string and cardboard using and (b) a nephroid using .

Acknowledgements

Thank you to Jennifer Schaefer for the helpful conversations on this topic and to Michael McConnell and Michael Gilbert for sharing some references and for informing me that these are known as “residue designs.”

References

[1] C. Hooley. “On Artin’s conjecture.” J. Reine Angew. Math., vol. 225, 1967, pp. 209-220. [2] I. D. Johnson. “Paving the Way to Algebraic Thought Using Residue Designs.” Math. Teacher, vol. 91, no. 4, April 1998, pp. 326-332. [3] P. Locke. “Residue Designs.” Math. Teacher, vol. 65, no. 3, March 1972, pp. 260-263. [4] T. E. Moore. “Aspects of Group Theory in Residue Designs.” Two-Year College Mathematics Readings. W. Page, Ed. Washington, DC: Mathematical Association of America, 1981. pp. 254-257. [5] A. J. Picard. “Graphing in Modular Systems.” Math. Teacher, vol. 64, no. 5, May 1971, pp. 459–466.

0 items under this folder.