Skip to content

Weyl sequence (additive orbit)

A fixed-step modular orbit that distributes irrational circle iterates asymptotically or traverses finite residues once per coprime-step cycle.

Version
v3 · 2026-11-14 · History
Domain-specific #
14357
Domain group
Formal Sciences
Origin domain
Mathematics
Subdomains
Uniform Distribution Modulo One, Additive Cyclic Orbits → Mathematics

Core Idea

A Weyl sequence, in the additive-orbit sense, repeatedly adds one fixed step with wraparound. On the circle ℝ/ℤ, an irrational step gives a nonrepeating orbit whose interval-visit frequencies approach interval lengths.[1][2] In finite ℤ/mℤ, a coprime step visits every residue before repeating.[3] These are different coverage tests: an asymptotic limit and a complete finite cycle. Neither proves that a short prefix is balanced or a generator's output is random.

How would you explain it like I'm…

Same-Step Circle Walk

Walk around a circle taking steps that are all exactly the same size. If the step is a strange size that never fits evenly, you never land on exactly the same spot twice, and over a long time your footprints spread evenly all the way around. On a clock face, if your step size shares nothing with the number of hours, you'll touch every hour once before starting over.

Step, Wrap, Repeat

A Weyl sequence is what you get when you keep adding the same step and wrap around when you reach the end, like going around a clock. There are two kinds. On a clock with a fixed number of spots, if the step size and the number of spots share no common factor bigger than 1, you visit every spot exactly once before repeating. On a smooth circle, if the step is a special kind of number that isn't a fraction (an irrational number), you never land on the same spot twice, and over a very long time you spread evenly around the whole circle. Some computer programs use the clock kind as one part of making random-looking numbers, but just visiting every spot doesn't make the output truly random.

Additive Orbit with Wraparound

A Weyl sequence, in the additive-orbit sense, is produced by repeatedly adding a fixed step and reducing with wraparound. On the circle, numbers from 0 to 1 with wraparound, an irrational step θ gives x_n = {x_0 + nθ}, the fractional part. Those terms never repeat, and in the long run the fraction of terms landing in any interval equals the interval's length, a property called equidistribution. With an integer step s modulo m, the rule w_(n+1) = w_n + s (mod m) visits every residue once before repeating exactly when s and m have greatest common divisor 1. The two versions share a construction but give different guarantees: the circle version is only a long-run frequency statement, while the finite version gives exact coverage over one full cycle. Random number generators by Marsaglia and Widynski use an odd-step counter called a Weyl sequence together with separate scrambling machinery, but the counter's full period alone doesn't prove the output is random.

 

A Weyl sequence in the additive-orbit sense is the orbit of fixed addition followed by reduction on a space with wraparound. On the circle ℝ/ℤ with irrational step θ, x_n = {x_0 + nθ} never repeats and is equidistributed: asymptotically, the proportion of terms in any interval equals its length, although the equidistribution theorem by itself supplies no rate for finite prefixes. On a finite cyclic group, the recurrence w_(n+1) = w_n + s (mod m) has full period, visiting every residue once before repeating, exactly when gcd(s, m) = 1, after which it cycles. The shared construction therefore carries different guarantees: asymptotic frequency on the circle versus exact coverage per cycle in the finite case. In pseudorandom generation, Marsaglia explicitly calls his odd-step word counter a Weyl sequence and combines it with a separate xorshift generator, and Widynski names the 64-bit odd-step counter in his middle-square generator a Weyl sequence, pairing it with squaring. In both cases the counter's full period does not by itself establish that the transformed output is random. The qualified name is needed because spectral theory uses 'Weyl sequence' for sequences of approximate eigenvectors, an unrelated notion with no modular additive step.

Scope of Application

The scope is fixed-addition orbits on quotient additive carriers; the carrier and step determine which coverage test applies.

  • Mathematical circle orbit. The fractional parts {x_0+nθ} have limiting interval frequencies when θ is irrational.[2]
  • Numerical-methods illustration. Maliar and Maliar give {n√2} as an example; they do not report a specific integration run with those points.[1]
  • 32-bit generator counter. Marsaglia calls d += 362437 a Weyl sequence inside xorwow.[4]
  • 64-bit generator counter. Widynski uses an odd-step 64-bit counter in a different generator.[5]

The counter periods describe state coverage, not output quality or security. Spectral theory also calls approximate eigenvectors Weyl sequences; that homonym has a different recognition test.[6]

Clarity

Write down three things before calling a sequence a Weyl additive orbit: the quotient carrier, the fixed step, and the coverage condition. For a circle orbit, test irrationality and state an asymptotic interval-frequency conclusion.[2] For a finite counter, test coprimality and state a full-cycle period conclusion.[3] A plain unbounded arithmetic progression, a sequence generated by varying steps, and a theorem about the orbit are different objects. A general equidistributed sequence need not use this fixed-addition rule.

Manages Complexity

The start, step, and carrier describe a long sequence without listing its terms. Additive group supplies the internal addition on either quotient carrier. Recurrence relation supplies the order-one update rule plus initial value. Recurrence captures dependence on the preceding state and return: exact after a finite cycle, or arbitrarily close to an earlier circle state after enough irrational steps. The latter follows from all-interval equidistribution.[2] These three relationships explain different parts of the construction, and none supplies a finite-prefix error bound by itself.

Abstract Reasoning

For m=12, step 5 is coprime to 12, so it visits all twelve residues before returning. Step 4 has period 12/gcd(4,12)=3, so it visits only three residues from a given start.[3] With θ=√2 on the circle, the step is irrational, so the orbit has no exact return; over a growing prefix, interval frequencies approach interval lengths.[1][2] In either case, decide what a later application actually needs: full-cycle coverage, a finite-prefix error estimate, or output-quality evidence. Those are separate questions.

Knowledge Transfer

The same fixed-addition rule can generate mathematical fractional parts and word-sized modular counters. Marsaglia and Widynski place such counters inside different generator designs.[4][5] The transferable part is the orbit rule and its typed step test. The circle's asymptotic conclusion does not become a finite counter's period claim, and a counter's period does not become a randomness guarantee. Calling an unrelated repeated process a Weyl sequence would lose the quotient-arithmetic recognition test.

Relationships to Other Abstractions

Local relationship map for Weyl sequence (additive orbit)Parents appear above the current abstraction, mutual partners to the right, and children below. Node labels state whether each abstraction is prime or domain-specific; colors identify relation types.Weyl sequence(additive orbit)DOMAINDomain-specific abstraction: Additive group — includesAdditive groupDOMAINDomain-specific abstraction: Recurrence relation — includesRecurrencerelationDOMAINPrime abstraction: Recurrence — is a decomposition ofRecurrencePRIME

Current abstraction Weyl sequence (additive orbit) Domain-specific

Parents (3) — outgoing typed relations

  • Weyl sequence (additive orbit) includes Additive group Domain-specific

    The quotient additive group is an identity-bearing carrier inside the Weyl orbit.

  • Weyl sequence (additive orbit) includes Recurrence relation Domain-specific

    An order-one recurrence equation with an initial state is an internal defining rule of each orbit.

  • Weyl sequence (additive orbit) is a decomposition of Recurrence Prime

    The arithmetic orbit frames a portable prior-state dependence and exact or near-return pattern.

Hierarchy paths (7) — routes to 7 parentless roots

Neighborhood in Abstraction Space

Weyl sequence (additive orbit) sits in a sparse region of the domain-specific corpus (74th percentile for distinctiveness): few abstractions share its structure, so a faithful description tends to retrieve it precisely.

Family — Integer Classifications & Arithmetic Functions (45 abstractions)

Nearest neighbors

Computed from structural-signature embeddings · 2026-11-14

References

[1] Lilia Maliar and Serguei Maliar, “Numerical Methods for Large-Scale Dynamic Economic Models,” in Handbook of Computational Economics, vol. 3 (2014), chapter 7, printed p. 386, one-based PDF p. 62, https://web.stanford.edu/~maliars/Files/Chapter7HandbookCE2014.pdf. Authored methods chapter; the √2 sequence is an illustration, not a reported integration experiment. registry ↩a ↩b ↩c

[2] Steve Pincus and Rudolf E. Kalman, “Not All (Possibly) ‘Random’ Sequences Are Created Equal,” Proceedings of the National Academy of Sciences 94, no. 8 (1997): 3513–3518, “Multiples of Irrationals,” DOI 10.1073/pnas.94.8.3513, https://www.pnas.org/doi/10.1073/pnas.94.8.3513. Original research article; supports fixed-difference correlation and the qualitative theorem's lack of a rate. registry ↩a ↩b ↩c ↩d ↩e

[3] Louisiana State University, “Cyclic Group Supplement,” mathematics course notes, Theorems 6–7 and the ℤ/12ℤ example, one-based PDF pp. 2–3, https://www.math.lsu.edu/~adkins/m7200/cyclicgroup.pdf. University proof of order m/gcd(s,m) and the coprime full-generation condition; it does not assign the Weyl name to every cyclic orbit. registry ↩a ↩b ↩c

[4] George Marsaglia, “Xorshift RNGs,” Journal of Statistical Software 8, no. 14 (2003), printed p. 4, DOI 10.18637/jss.v008.i14, https://www.jstatsoft.org/article/view/v008i14. Original published paper; full text checked in a mirrored PDF at https://www.dkl9.net/archive/marsaglia_xorshift_rng.pdf, one-based PDF p. 5, because journal PDF text extraction failed. registry ↩a ↩b

[5] Bernard Widynski, “Middle-Square Weyl Sequence RNG,” arXiv:1704.00358v7 (2022), §§2, 4, https://arxiv.org/html/1704.00358v7. Original preprint; Theorem A supports the counter-period claim. Later output-quality or cryptographic assertions are not relied upon here. registry ↩a ↩b

[6] Martin Peev, Functional Analysis II, unofficial lecture notes for Prof. Phan Thành Nam, LMU Munich, Theorem 4.15, printed p. 50, one-based PDF p. 50, https://www.math.lmu.de/~nam/LectureNotesFA1718.pdf. University source for the separate approximate-eigenvector homonym. registry ↩