Roots of Unity Circle

The n-th roots of unity on the unit circle. The learner clicks a root to trace its powers and read its order (and whether it is primitive), colours the roots by exact order to see x^n - 1 = prod Phi_d, and factors over Q, Q(i) or F_q, where the roots of each irreducible factor form a dashed group. Further views: automorphisms zeta -> zeta^a drawn as arrows, and Gaussian periods summed head to tail down a chain of period lengths.

Used in: Ring Theory

Props

PropTypeDefaultDescription
titlestringby mode, e.g. "The 12th roots of unity"Title bar text.
controlsstring[]all controls shownIds of the hideable toggles, readouts and panels to show (see the controls registry, e.g. highlight.primitive, panel.factors, panel.base, readout.degree). Core controls always show. Page building fills this from the subject's topic scope.
mode"roots" | "automorphisms" | "periods"inferred: chain or f -> periods, automorphism -> automorphisms, else rootsroots: click a root to trace its powers, read its order, colour by order, factor x^n - 1. automorphisms: pick sigma_a: zeta -> zeta^a from the Galois group over the base field and see it permute the roots. periods: Gaussian periods (sums of the primitive roots over the cosets of the subgroup of order f in (Z/n)^x).
nnumber12 (periods: 17)Which roots of unity: the roots of x^n - 1, 1 <= n <= 60 (labels drawn up to n = 24). The learner can change it with a slider. Periods mode needs (Z/n)^x cyclic: n = 4, p^k or 2p^k.
selectednumber | string1 (zeta itself)Roots mode: the root selected at start, as the exponent k of zeta^k (a number or "5"), "zeta^5", "exp(2*pi*i*5/12)", "i" or "-i". The learner clicks another root or uses the arrow keys.
showPowersbooleantrue (false when showCyclotomicFactors is set)Roots mode: draw the path 1 -> zeta^k -> zeta^2k -> ... back to 1 for the selected root; a Step button draws it one power at a time.
showPrimitivebooleanfalseRoots mode: start with the primitive roots ringed and listed (phi(n) of them, gcd(k, n) = 1).
colorByOrderbooleantrue when showCyclotomicFactors or highlightOrder is set, else falseRoots mode: colour every root by its exact order d (a divisor of n).
highlightOrdernumbernoneRoots mode: a divisor d of n whose roots (the roots of Phi_d) are picked out at start; the others are dimmed.
showCyclotomicFactorsbooleanfalseRoots mode: open the panel x^n - 1 = prod_{d | n} Phi_d(x) with every Phi_d written out and its degree phi(d); clicking a factor picks out its roots.
basestring"Q" (panel closed unless given)Base field K: "Q", "Q(i)" or "F_q" with q a prime power ("F_5", "F_4"). Roots mode: opens the panel that factors Phi_d over K (the roots of each irreducible factor form one dashed group, the orbit of zeta^k -> zeta^ak), strips the characteristic (n = p^a m -> m over F_p) and gives [K(mu_n) : K] (over F_q, the order of q mod n). Automorphisms mode: the Galois group shrinks to the subgroup of (Z/n)^x fixing K. The learner can switch it.
automorphismnumberthe smallest a > 1 in the groupAutomorphisms mode: a for the automorphism sigma_a: zeta -> zeta^a selected at start (gcd(a, n) = 1, and in the Galois group over the base).
fnumberphi(n)/2Periods mode: the period length (the number of roots in each sum), a divisor of phi(n).
chainnumber[]none (every divisor of phi(n) offered)Periods mode: a chain of period lengths, each dividing the one before, e.g. [16, 8, 4, 2, 1] for n = 17 (the tower of fixed fields). The learner steps down it and sees each period split into a sum of periods of the next length.
stepnumber0Periods mode with chain: index of the chain entry shown at start.