is the generator in of the subgroup : it is a common multiple of and that divides every common multiple, and for ,
Examples
Example 6.11 (Alignment problems are lcm problems)
Two meshed gears have and teeth. After how many teeth of common motion do they return to their initial position together? The configuration repeats when the number of elapsed teeth is a common multiple of and ; the first time is
teeth — that is, turns of the large gear and of the small one ( and ). Note the practical route: compute the gcd first (Euclid: , ), then divide — never build the lcm by listing multiples. Every periodic-coincidence question (gears, planetary alignments, repeating decimals meeting) reduces to this one computation.