Number System

Primitive Root

An isometric trail visits colored positions on a circular track.

Primitive Root definition

A primitive root modulo n is an integer whose powers generate every invertible residue class modulo n.

In Spanish
raíz primitiva
Topic
Integer equations and number theory

Primitive Root in a picture

Primitive Root diagramThe powers of 3 modulo 7 visit all six nonzero residue classes.Start with 3 modulo 7Successive powers produce 3, 2, 6Continue the powersNext come 4, 5, and 1All six classes appearSo 3 is a primitive root
The powers of 3 modulo 7 visit all six nonzero residue classes.

How it works

Equivalently, a primitive root has multiplicative order φ(n). A prime modulus always has a primitive root. For a composite modulus the invertible residues may fail to be generated by powers of one element.

Worked examples

Is 2 a primitive root modulo 7?

No. It returns to 1 after three powers, while φ(7) = 6.

Is 2 a primitive root modulo 5?

Yes. Its powers visit 2, 4, 3, and 1.

What is required of the order modulo 11?

It must equal φ(11) = 10.

Common mistake

For a composite modulus, a primitive root generates the units. It need not generate all nonzero classes.

Quick check

What order must a primitive root modulo 13 have?

Can 1 generate all units modulo 7?

Show answer

No. All its powers equal 1.

What does a primitive root generate?

Show answer

Every invertible residue class.

Sources

Flashcard

Primitive Root

Reveal the definition

A primitive root modulo n is an integer whose powers generate every invertible residue class modulo n.

Effortless Math. “Primitive Root.” Math Dictionary.