S01 · implies
Before
n=8,\quad a=-5
After
a\equiv3\pmod8,\quad\gcd(3,8)=1,\quad n\ge2
Conditions: none
Rule: calc · Uses: G1
Leaf basis: calc
Normalize and qualify the unit first; 8=2*3+2,3=2+1 give gcd 1.
derivation-mko-multiplicative-order-mod-n-01 · ocme-new142-reader-adoption-20261021
ord_8(-5)=ord_8(3)=2, with phi(8)=4 and 2 dividing 4 but not equal to it.
Complete first-return and unit enumeration at bounded modulus 8, with undefined and order-one boundaries.
calcG1 — n=8,a=-5, using multiplicative order as the least positive return to 1.m — least positive return exponentU_8 — complete unitsSome rule statements have reader clarifications in this revision: they are paraphrases, not verbatim quotations. Referenced original source bytes and hashes are unchanged.
calc · prerequisite — Assume exact integer arithmetic, division with remainder, and definitions of divisibility and gcd; every congruence has an explicit modulus.mko_definition · cited — Require n≥2, normalize a modulo n and check coprimality first. Starting at exponent1 build every power through its first return to 1; an arbitrary later return is not the order. Count phi(n) by complete residue enumeration and verify the order divides phi(n). Noncoprime residues and n<2 have undefined order here. Residue1 has order1, and a negative integer representative is normalized first. Do not infer order=phi(n), a primitive root or additive order. · mko-multiplicative-order-mod-nBefore
n=8,\quad a=-5
After
a\equiv3\pmod8,\quad\gcd(3,8)=1,\quad n\ge2
Conditions: none
Rule: calc · Uses: G1
Leaf basis: calc
Normalize and qualify the unit first; 8=2*3+2,3=2+1 give gcd 1.
Before
k=1
After
3^1\equiv3\not\equiv1\pmod8
Conditions: none
Rule: calc · Uses: G1, S01
Leaf basis: calc
Start at k=1, not k=0; the first positive power has not returned.
Before
k=2
After
3^2=9\equiv1\pmod8
Conditions: none
Rule: calc · Uses: G1, S02
Leaf basis: calc
The next power returns to 1, and S02 excludes every smaller positive exponent.
Before
3^1\ne1,\quad3^2=1\quad(\bmod8)
After
\operatorname{ord}_8(3)=2=\operatorname{ord}_8(-5)Conditions: none
Rule: mko_definition · Uses: G1, S01, S02, S03
Leaf basis: mko_definition
The first-return certificate determines least value 2, not later return 4.
Before
k=1,2,3,4,5,6,7,8
After
\gcd(k,8)=1,2,1,4,1,2,1,8;\quad U_8=\{1,3,5,7\},\ \varphi(8)=4Conditions: none
Rule: calc · Uses: G1, S01
Leaf basis: calc
The complete eight-entry gcd list determines phi 4 without guessing from the order.
Before
m=\operatorname{ord}_n(a),\quad a^k\equiv1,\quad k=qm+r,\ 0\le r<mAfter
1\equiv a^k\equiv(a^m)^qa^r\equiv a^r\Rightarrow r=0\Rightarrow m\mid k
Conditions: a is a unit; m is the least positive return; k is a positive return
Rule: calc · Uses: G1, S04, S05
Leaf basis: calc
Division with remainder and minimality show order divides every return exponent; here k=phi(8)=4 is a return.
Before
m=2,\quad\varphi(8)=4
After
2\mid4,\quad2<4,\quad3^4\equiv1\pmod8
Conditions: none
Rule: calc · Uses: G1, S03, S05, S06
Leaf basis: calc
Check divisibility but strict inequality; later return 4 cannot replace order 2.
Before
a\equiv1\pmod8;\quad a=2\text{ or }n=1After
\operatorname{ord}_8(1)=1;\quad\operatorname{ord}_8(2),\ \operatorname{ord}_1(a)\text{ undefined here}Conditions: none
Rule: calc · Uses: G1, S01, S04, S07
Leaf basis: calc
Residue 1 returns at its first positive power, giving order 1; nonunit 2 and n<2 are outside this domain.
No substeps in this guide.
S08 · premise_audit · G1, S01, S04, S07 — Undefined is not order zero, nor is it additive order modulo 8.S07 · premise_audit · G1, S03, S05, S06 — This example makes no automatic primitive-root or maximal-order claim.S06 · premise_audit · G1, S04, S05 — q is nonnegative; r>0 would contradict first-return minimality.S05 · premise_audit · G1, S01 — 4 counts units and need not equal this base's least return.S04 · premise_audit · G1, S01, S02, S03 — The negative representative shares class 3, and order depends on the class.S03 · premise_audit · G1, S02 — The complete smaller-positive-exponent set is {1}, with no omission.S02 · premise_audit · G1, S01 — a^0=1 cannot be misreported as order zero.S01 · premise_audit · G1 — A nonunit does not start this order search.Start at exponent 1 and retain all powers through the first 1.
3 has additive order 8 modulo 8 but multiplicative order 2; keep operations distinct.
reject — 3^2 already returns, so 4 is not least.reject — Here 2<4.reject — 2 is not a unit, so this order is undefined here.ord_8(-5)=ord_8(3)=2, with phi(8)=4 and 2 dividing 4 but not equal to it.
3 declared checks for this guide; only the listed expressions are covered.
b1b2f1dcf8c50d67a93fe52d95f8eef7b3abba9fce541cbfb8a5edcfd8f8ac31cb69007abb271f7722aee1a86a2a3de8d979582da7c2b4919c706f641010eca03abbb0ccf5ca4a241cd70ff96070b6ead7244523SCOPED_LEAD_AND_BILINGUAL_CONTEXT_REVIEWSame-source full JSON (formulas, ASTs, controls and revision log)