Step-by-step derivation
S001 · implies
Before
source roles = [qf-mod47-morder-qualification, [a, domain, n, operation]]
After
derived = [morder-qualification, Exact_multiplicative_order_mod_n]
Conditions: none
THIS source uses LOCAL-hyphen operations with exact keys/domain.Keep source field order and numeric/Boolean/string roles;integer rational texts omit/1.Original questions,English,MKOs,ASTs and statuses remain unchanged.
Step identifiers and dependencies
Rule: R66_EXACT_source_bank_keys_local_operation_domain · Uses: G001
S002 · implies
Before
source roles = [ORIGINAL representative, 2, 27]
After
derived = [0, 2]
Conditions: none
Use integer Euclidean division: value=n*quotient+remainder with0≤remainder<n.Normalize negative representatives too;do not use floating remainders.
Step identifiers and dependencies
Rule: Finite_MOD_euclidean_quotient_remainder · Uses: G001, S001
S003 · implies
Before
source roles = [27, 2, 2, 1]
After
derived = [[1, 2, 4, 5, 7, 8, 10, 11, 13, 14, 16, 17, 19, 20, 22, 23, 25, 26], 18]
Conditions: none
FIRST require n≥2,normalize into0..n−1 and qualify gcd1.Enumerate ALL unit residues to obtain phi(n);do not replace general phi with n−1 or assign a numeric order to a nonunit.
Step identifiers and dependencies
Rule: Order_ALL_residues_UNIT_gcd_and_complete_phi_carrier · Uses: G001, S002
S004 · calculation
Before
Order ORIGINAL previous residue times unit exponent1 := mul(1, 2)
After
Order ORIGINAL previous residue times unit exponent1 = 2
Conditions: none
Calculate exactly from THIS step’s ORIGINAL ordered operands.Retain the SOURCE rational pre-reduction envelope separately;do not use floating values or silently widen a different bank.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S003
S005 · implies
Before
source roles = [first-return exponent1, 2, 27]
After
derived = [0, 2]
Conditions: none
Use integer Euclidean division: value=n*quotient+remainder with0≤remainder<n.Normalize negative representatives too;do not use floating remainders.
Step identifiers and dependencies
Rule: Finite_MOD_euclidean_quotient_remainder · Uses: G001, S004
S006 · calculation
Before
Order ORIGINAL previous residue times unit exponent2 := mul(2, 2)
After
Order ORIGINAL previous residue times unit exponent2 = 4
Conditions: none
Calculate exactly from THIS step’s ORIGINAL ordered operands.Retain the SOURCE rational pre-reduction envelope separately;do not use floating values or silently widen a different bank.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S005
S007 · implies
Before
source roles = [first-return exponent2, 4, 27]
After
derived = [0, 4]
Conditions: none
Use integer Euclidean division: value=n*quotient+remainder with0≤remainder<n.Normalize negative representatives too;do not use floating remainders.
Step identifiers and dependencies
Rule: Finite_MOD_euclidean_quotient_remainder · Uses: G001, S006
S008 · calculation
Before
Order ORIGINAL previous residue times unit exponent3 := mul(4, 2)
After
Order ORIGINAL previous residue times unit exponent3 = 8
Conditions: none
Calculate exactly from THIS step’s ORIGINAL ordered operands.Retain the SOURCE rational pre-reduction envelope separately;do not use floating values or silently widen a different bank.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S007
S009 · implies
Before
source roles = [first-return exponent3, 8, 27]
After
derived = [0, 8]
Conditions: none
Use integer Euclidean division: value=n*quotient+remainder with0≤remainder<n.Normalize negative representatives too;do not use floating remainders.
Step identifiers and dependencies
Rule: Finite_MOD_euclidean_quotient_remainder · Uses: G001, S008
S010 · calculation
Before
Order ORIGINAL previous residue times unit exponent4 := mul(8, 2)
After
Order ORIGINAL previous residue times unit exponent4 = 16
Conditions: none
Calculate exactly from THIS step’s ORIGINAL ordered operands.Retain the SOURCE rational pre-reduction envelope separately;do not use floating values or silently widen a different bank.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S009
S011 · implies
Before
source roles = [first-return exponent4, 16, 27]
After
derived = [0, 16]
Conditions: none
Use integer Euclidean division: value=n*quotient+remainder with0≤remainder<n.Normalize negative representatives too;do not use floating remainders.
Step identifiers and dependencies
Rule: Finite_MOD_euclidean_quotient_remainder · Uses: G001, S010
S012 · calculation
Before
Order ORIGINAL previous residue times unit exponent5 := mul(16, 2)
After
Order ORIGINAL previous residue times unit exponent5 = 32
Conditions: none
Calculate exactly from THIS step’s ORIGINAL ordered operands.Retain the SOURCE rational pre-reduction envelope separately;do not use floating values or silently widen a different bank.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S011
S013 · implies
Before
source roles = [first-return exponent5, 32, 27]
After
derived = [1, 5]
Conditions: none
Use integer Euclidean division: value=n*quotient+remainder with0≤remainder<n.Normalize negative representatives too;do not use floating remainders.
Step identifiers and dependencies
Rule: Finite_MOD_euclidean_quotient_remainder · Uses: G001, S012
S014 · calculation
Before
Order ORIGINAL previous residue times unit exponent6 := mul(5, 2)
After
Order ORIGINAL previous residue times unit exponent6 = 10
Conditions: none
Calculate exactly from THIS step’s ORIGINAL ordered operands.Retain the SOURCE rational pre-reduction envelope separately;do not use floating values or silently widen a different bank.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S013
S015 · implies
Before
source roles = [first-return exponent6, 10, 27]
After
derived = [0, 10]
Conditions: none
Use integer Euclidean division: value=n*quotient+remainder with0≤remainder<n.Normalize negative representatives too;do not use floating remainders.
Step identifiers and dependencies
Rule: Finite_MOD_euclidean_quotient_remainder · Uses: G001, S014
S016 · calculation
Before
Order ORIGINAL previous residue times unit exponent7 := mul(10, 2)
After
Order ORIGINAL previous residue times unit exponent7 = 20
Conditions: none
Calculate exactly from THIS step’s ORIGINAL ordered operands.Retain the SOURCE rational pre-reduction envelope separately;do not use floating values or silently widen a different bank.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S015
S017 · implies
Before
source roles = [first-return exponent7, 20, 27]
After
derived = [0, 20]
Conditions: none
Use integer Euclidean division: value=n*quotient+remainder with0≤remainder<n.Normalize negative representatives too;do not use floating remainders.
Step identifiers and dependencies
Rule: Finite_MOD_euclidean_quotient_remainder · Uses: G001, S016
S018 · calculation
Before
Order ORIGINAL previous residue times unit exponent8 := mul(20, 2)
After
Order ORIGINAL previous residue times unit exponent8 = 40
Conditions: none
Calculate exactly from THIS step’s ORIGINAL ordered operands.Retain the SOURCE rational pre-reduction envelope separately;do not use floating values or silently widen a different bank.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S017
S019 · implies
Before
source roles = [first-return exponent8, 40, 27]
After
derived = [1, 13]
Conditions: none
Use integer Euclidean division: value=n*quotient+remainder with0≤remainder<n.Normalize negative representatives too;do not use floating remainders.
Step identifiers and dependencies
Rule: Finite_MOD_euclidean_quotient_remainder · Uses: G001, S018
S020 · calculation
Before
Order ORIGINAL previous residue times unit exponent9 := mul(13, 2)
After
Order ORIGINAL previous residue times unit exponent9 = 26
Conditions: none
Calculate exactly from THIS step’s ORIGINAL ordered operands.Retain the SOURCE rational pre-reduction envelope separately;do not use floating values or silently widen a different bank.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S019
S021 · implies
Before
source roles = [first-return exponent9, 26, 27]
After
derived = [0, 26]
Conditions: none
Use integer Euclidean division: value=n*quotient+remainder with0≤remainder<n.Normalize negative representatives too;do not use floating remainders.
Step identifiers and dependencies
Rule: Finite_MOD_euclidean_quotient_remainder · Uses: G001, S020
S022 · calculation
Before
Order ORIGINAL previous residue times unit exponent10 := mul(26, 2)
After
Order ORIGINAL previous residue times unit exponent10 = 52
Conditions: none
Calculate exactly from THIS step’s ORIGINAL ordered operands.Retain the SOURCE rational pre-reduction envelope separately;do not use floating values or silently widen a different bank.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S021
S023 · implies
Before
source roles = [first-return exponent10, 52, 27]
After
derived = [1, 25]
Conditions: none
Use integer Euclidean division: value=n*quotient+remainder with0≤remainder<n.Normalize negative representatives too;do not use floating remainders.
Step identifiers and dependencies
Rule: Finite_MOD_euclidean_quotient_remainder · Uses: G001, S022
S024 · calculation
Before
Order ORIGINAL previous residue times unit exponent11 := mul(25, 2)
After
Order ORIGINAL previous residue times unit exponent11 = 50
Conditions: none
Calculate exactly from THIS step’s ORIGINAL ordered operands.Retain the SOURCE rational pre-reduction envelope separately;do not use floating values or silently widen a different bank.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S023
S025 · implies
Before
source roles = [first-return exponent11, 50, 27]
After
derived = [1, 23]
Conditions: none
Use integer Euclidean division: value=n*quotient+remainder with0≤remainder<n.Normalize negative representatives too;do not use floating remainders.
Step identifiers and dependencies
Rule: Finite_MOD_euclidean_quotient_remainder · Uses: G001, S024
S026 · calculation
Before
Order ORIGINAL previous residue times unit exponent12 := mul(23, 2)
After
Order ORIGINAL previous residue times unit exponent12 = 46
Conditions: none
Calculate exactly from THIS step’s ORIGINAL ordered operands.Retain the SOURCE rational pre-reduction envelope separately;do not use floating values or silently widen a different bank.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S025
S027 · implies
Before
source roles = [first-return exponent12, 46, 27]
After
derived = [1, 19]
Conditions: none
Use integer Euclidean division: value=n*quotient+remainder with0≤remainder<n.Normalize negative representatives too;do not use floating remainders.
Step identifiers and dependencies
Rule: Finite_MOD_euclidean_quotient_remainder · Uses: G001, S026
S028 · calculation
Before
Order ORIGINAL previous residue times unit exponent13 := mul(19, 2)
After
Order ORIGINAL previous residue times unit exponent13 = 38
Conditions: none
Calculate exactly from THIS step’s ORIGINAL ordered operands.Retain the SOURCE rational pre-reduction envelope separately;do not use floating values or silently widen a different bank.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S027
S029 · implies
Before
source roles = [first-return exponent13, 38, 27]
After
derived = [1, 11]
Conditions: none
Use integer Euclidean division: value=n*quotient+remainder with0≤remainder<n.Normalize negative representatives too;do not use floating remainders.
Step identifiers and dependencies
Rule: Finite_MOD_euclidean_quotient_remainder · Uses: G001, S028
S030 · calculation
Before
Order ORIGINAL previous residue times unit exponent14 := mul(11, 2)
After
Order ORIGINAL previous residue times unit exponent14 = 22
Conditions: none
Calculate exactly from THIS step’s ORIGINAL ordered operands.Retain the SOURCE rational pre-reduction envelope separately;do not use floating values or silently widen a different bank.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S029
S031 · implies
Before
source roles = [first-return exponent14, 22, 27]
After
derived = [0, 22]
Conditions: none
Use integer Euclidean division: value=n*quotient+remainder with0≤remainder<n.Normalize negative representatives too;do not use floating remainders.
Step identifiers and dependencies
Rule: Finite_MOD_euclidean_quotient_remainder · Uses: G001, S030
S032 · calculation
Before
Order ORIGINAL previous residue times unit exponent15 := mul(22, 2)
After
Order ORIGINAL previous residue times unit exponent15 = 44
Conditions: none
Calculate exactly from THIS step’s ORIGINAL ordered operands.Retain the SOURCE rational pre-reduction envelope separately;do not use floating values or silently widen a different bank.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S031
S033 · implies
Before
source roles = [first-return exponent15, 44, 27]
After
derived = [1, 17]
Conditions: none
Use integer Euclidean division: value=n*quotient+remainder with0≤remainder<n.Normalize negative representatives too;do not use floating remainders.
Step identifiers and dependencies
Rule: Finite_MOD_euclidean_quotient_remainder · Uses: G001, S032
S034 · calculation
Before
Order ORIGINAL previous residue times unit exponent16 := mul(17, 2)
After
Order ORIGINAL previous residue times unit exponent16 = 34
Conditions: none
Calculate exactly from THIS step’s ORIGINAL ordered operands.Retain the SOURCE rational pre-reduction envelope separately;do not use floating values or silently widen a different bank.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S033
S035 · implies
Before
source roles = [first-return exponent16, 34, 27]
After
derived = [1, 7]
Conditions: none
Use integer Euclidean division: value=n*quotient+remainder with0≤remainder<n.Normalize negative representatives too;do not use floating remainders.
Step identifiers and dependencies
Rule: Finite_MOD_euclidean_quotient_remainder · Uses: G001, S034
S036 · calculation
Before
Order ORIGINAL previous residue times unit exponent17 := mul(7, 2)
After
Order ORIGINAL previous residue times unit exponent17 = 14
Conditions: none
Calculate exactly from THIS step’s ORIGINAL ordered operands.Retain the SOURCE rational pre-reduction envelope separately;do not use floating values or silently widen a different bank.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S035
S037 · implies
Before
source roles = [first-return exponent17, 14, 27]
After
derived = [0, 14]
Conditions: none
Use integer Euclidean division: value=n*quotient+remainder with0≤remainder<n.Normalize negative representatives too;do not use floating remainders.
Step identifiers and dependencies
Rule: Finite_MOD_euclidean_quotient_remainder · Uses: G001, S036
S038 · calculation
Before
Order ORIGINAL previous residue times unit exponent18 := mul(14, 2)
After
Order ORIGINAL previous residue times unit exponent18 = 28
Conditions: none
Calculate exactly from THIS step’s ORIGINAL ordered operands.Retain the SOURCE rational pre-reduction envelope separately;do not use floating values or silently widen a different bank.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S037
S039 · implies
Before
source roles = [first-return exponent18, 28, 27]
After
derived = [1, 1]
Conditions: none
Use integer Euclidean division: value=n*quotient+remainder with0≤remainder<n.Normalize negative representatives too;do not use floating remainders.
Step identifiers and dependencies
Rule: Finite_MOD_euclidean_quotient_remainder · Uses: G001, S038
S040 · implies
Before
source roles = [27, 2, 18]
After
derived = [[[1, 2], [2, 4], [3, 8], [4, 16], [5, 5], [6, 10], [7, 20], [8, 13], [9, 26], [10, 25], [11, 23], [12, 19], [13, 11], [14, 22], [15, 17], [16, 7], [17, 14], [18, 1]], 18]
Conditions: none
The SOURCE computes the complete first-return prefix EVEN when qualification outputs only gcd/phi.Retain this UNUSED computation obligation.Start at POSITIVE exponent1 with no earlier return.Do not claim order=phi,a primitive root or additive order.
Step identifiers and dependencies
Rule: Order_SOURCE_UNUSED_qualification_return_table_still_checked · Uses: G001, S039