Regular paperfolding sequence
In mathematics the regular paperfolding sequence, also known as the dragon curve sequence, is an infinite sequence of 0s and 1s.[src] It is obtained from the repeating partial sequence by filling in the question marks by another copy of the whole sequence.[src] The first few terms of the resulting sequence are: If a strip of paper is folded repeatedly in half in the same direction, i times, it will get 2^i-1 folds, whose direction (left or right) is given by the pattern of 0's and 1's in the first 2^i-1 terms of the regular paperfolding sequence.[src] Opening out each fold to create a right-angled corner (or, equivalently, making a sequence of left and right turns through a regular grid, following the pattern of the paperfolding sequence) produces a sequence of polygonal chains that approaches the dragon curve fractal:[src]
In mathematics the regular paperfolding sequence, also known as the dragon curve sequence, is an infinite sequence of 0s and 1s.[src] It is obtained from the repeating partial sequence by filling in the question marks by another copy of the whole sequence.[src] The first few terms of the resulting sequence are: If a strip of paper is folded repeatedly in half in the same direction, i times, it will get 2^i-1 folds, whose direction (left or right) is given by the pattern of 0's and 1's in the first 2^i-1 terms of the regular paperfolding sequence.[src] Opening out each fold to create a right-angled corner (or, equivalently, making a sequence of left and right turns through a regular grid, following the pattern of the paperfolding sequence) produces a sequence of polygonal chains that approaches the dragon curve fractal: ==Properties== The value of any given term t_n in the regular paperfolding sequence, starting with n=1 , can be found recursively as follows.[src] Divide n by two, as many times as possible, to get a factorization of the form n=m\cdot 2^k where m is an odd number.[src] Then t_n = \begin{cases} 1 & \text{if } m \equiv 1 \mod 4 \\ 0 & \text{if } m \equiv 3 \mod 4 \end{cases} Thus, for instance, t_{12}=t_3=0 : dividing 12 by two, twice, leaves the odd number 3.[src] As another example, t_{13}=1 because 13 is congruent to 1 mod 4.[src] The paperfolding word 1101100111001001..., which is created by concatenating the terms of the regular paperfolding sequence, is a fixed point of the morphism or string substitution rules 11 → 1101 01 → 1001 10 → 1100 00 → 1000 as follows: 11 → 1101 → 11011001 → 1101100111001001 → 11011001110010011101100011001001 ...[src] It can be seen from the morphism rules that the paperfolding word contains at most three consecutive 0s and at most three consecutive 1s.[src] The paperfolding sequence also satisfies the symmetry relation: t_n = \begin{cases} 1 & \text{if } n = 2^k \\ 1-t_{2^k-n} & \text{if } 2^{k-1} which shows that the paperfolding word can be constructed as the limit of another iterated process as follows: 1 1 1 0 110 1 100 1101100 1 1100100 110110011100100 1 110110001100100 In each iteration of this process, a 1 is placed at the end of the previous iteration's string, then this string is repeated in reverse order, replacing 0 by 1 and vice versa.[src] ==Generating function== The generating function of the paperfolding sequence is given by G(t_n;x)=\sum_{n=1}^{\infty}t_nx^n \, .[src] From the construction of the paperfolding sequence, it can be seen that G satisfies the functional relation G(t_n;x) = G(t_n;x^2) + \sum_{n=0}^{\infty}x^{4n+1} = G(t_n;x^2) + \frac{x}{1-x^4} \, .[src] ==Paperfolding constant== Substituting into the generating function gives a real number between and whose binary expansion is the paperfolding word G(t_n;\tfrac{1}{2})=\sum_{n=1}^{\infty} \frac{t_n}{2^n} This number is known as the paperfolding constant and has the value \sum_{k=0}^{\infty} \frac {8^{2^k}}{2^{2^{k+2}}-1} = 0.85073618820186...[src] ==General paperfolding sequence== The regular paperfolding sequence corresponds to folding a strip of paper consistently in the same direction.[src] If we allow the direction of the fold to vary at each step we obtain a more general class of sequences.[src] Given a binary sequence (f i ), we can define a general paperfolding sequence with folding instructions (f i ).[src] For a binary word w, let w ‡ denote the reverse of the complement of w.[src] Define an operator F a as F_a : w \mapsto w a w^\ddagger \ and then define a sequence of words depending on the (f i ) by w 0 = ε, w_n = F_{f_1} ( F_{f_2} ( \cdots F_{f_n}(\varepsilon) \cdots ) ) \ .[src] The limit w of the sequence w n is a paperfolding sequence.[src] The regular paperfolding sequence corresponds to the folding sequence f i = 1 for all i.[src] If n = m·2 k where m is odd then t_n = \begin{cases} f_j & \text{if } m \equiv 1 \mod 4 \\ 1-f_j & \text{if } m \equiv 3 \mod 4 \end{cases} which may be used as a definition of a paperfolding sequence.[src] ===Properties=== A paperfolding sequence is not ultimately periodic.[src] A paperfolding sequence is 2-automatic if and only if the folding sequence is ultimately periodic (1-automatic).[src] ==References==[src]
28 sentences · 28 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Regular paperfolding sequence." encyclopegia.org, 2026, https://encyclopegia.org/wiki/regular-paperfolding-sequence. Accessed 28 November 2026.
Chicago
"Regular paperfolding sequence." encyclopegia.org. Accessed November 28, 2026. https://encyclopegia.org/wiki/regular-paperfolding-sequence.
APA
encyclopegia.org. (2026). Regular paperfolding sequence. Retrieved November 28, 2026, from https://encyclopegia.org/wiki/regular-paperfolding-sequence
Accessed November 28, 2026 · CC BY-SA 4.0 · citation page · JSON