逐步推導
S001 · implies
操作前
source operation=flt-prime-coprime;original snapshot and mathematics retained
操作後
explicit ordered source output fields=[p, normalized_base, power_p_minus_1, congruence_certificate, boundary]
條件:無
原題快照保留歷史介面標記;本頁直接列來源欄位順序,不需JavaScript或外部表。欄位標籤不自動成為數學證據,No依各題聲稱範圍解讀。
步驟識別與依賴
規則:source_ordered_interface_explicit_without_javascript · 依賴:G001
S002 · implies
操作前
ACTUAL integer modulus=97;complete trial range2..floor_sqrt=9
操作後
checked rows[divisor,quotient,remainder]=[[2, 48, 1], [3, 32, 1], [4, 24, 1], [5, 19, 2], [6, 16, 1], [7, 13, 6], [8, 12, 1], [9, 10, 7]];first exact factor=null;prime=是
條件:無
若找到2到sqrt範圍的真因數就是合數見證。若全部試除無因數,任意合數分解必至少一因數≤sqrt,故排除全部合成情形;2的試除範圍空仍合法。不是以一次Fermat測試證prime。
步驟識別與依賴
規則:flt_primality_complete_trial_or_actual_factor_not_Fermat_test · 依賴:G001, S001
S003 · implies
操作前
original signed base=26;positive modulus=97;use nonnegative gcd inputs=[26, 97]
操作後
ALL Euclidean rows[left,right,q,r]=[[26, 97, 0, 26], [97, 26, 3, 19], [26, 19, 1, 7], [19, 7, 2, 5], [7, 5, 1, 2], [5, 2, 2, 1], [2, 1, 2, 0]];terminal nonnegative gcd=1;coprime=是
條件:無
餘數替換保共同因數,最後非零值給gcd;base0也保gcd(0,m)=m。不把模數prime與base可逆當同一旗標。
步驟識別與依賴
規則:flt_actual_gcd_coprime_separate_from_primality · 依賴:G001, S002
S004 · calculation
操作前
Fermat original signed base exact quotient := div(26, 97)
操作後
Fermat original signed base exact quotient = 26/97
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S003
S005 · calculation
操作前
Fermat original signed base floor quotient multiple := mul(0, 97)
操作後
Fermat original signed base floor quotient multiple = 0
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S004
S006 · calculation
操作前
Fermat original signed base normalized remainder := sub(26, 0)
操作後
Fermat original signed base normalized remainder = 26
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S005
S007 · implies
操作前
Fermat original signed base:signed integer value=26;positive modulus=97;exact quotient=26/97;floor q=0
操作後
value=q*modulus+remainder;normalized remainder=26 in[0,97)
條件:無
用正模數與向下整數商核實同餘類,負base也得到非負代表。餘數相等是mod此數的同餘,不是原整數都相等。
步驟識別與依賴
規則:flt_exact_signed_modulo_not_integer_equality · 依賴:G001, S006
S008 · implies
操作前
Fermat original modular exponent:original normalized base=26;original exponent=96;modulus=97
操作後
initialize accumulator1,current_base=base,remaining=exponent;invariant accumulator*current_base^remaining congruent to original power
條件:無
乘法單位元給0次方慣例;每步保持同一原始冪的同餘,不計龐大普通整數冪或混成實數等號。
步驟識別與依賴
規則:flt_modular_power_initial_invariant · 依賴:G001, S007
S009 · calculation
操作前
Fermat original modular exponent bit0 current base square := mul(26, 26)
操作後
Fermat original modular exponent bit0 current base square = 676
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S008
S010 · calculation
操作前
Fermat original modular exponent bit0 squared base reduction exact quotient := div(676, 97)
操作後
Fermat original modular exponent bit0 squared base reduction exact quotient = 676/97
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S009
S011 · calculation
操作前
Fermat original modular exponent bit0 squared base reduction floor quotient multiple := mul(6, 97)
操作後
Fermat original modular exponent bit0 squared base reduction floor quotient multiple = 582
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S010
S012 · calculation
操作前
Fermat original modular exponent bit0 squared base reduction normalized remainder := sub(676, 582)
操作後
Fermat original modular exponent bit0 squared base reduction normalized remainder = 94
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S011
S013 · implies
操作前
Fermat original modular exponent bit0 squared base reduction:signed integer value=676;positive modulus=97;exact quotient=676/97;floor q=6
操作後
value=q*modulus+remainder;normalized remainder=94 in[0,97)
條件:無
用正模數與向下整數商核實同餘類,負base也得到非負代表。餘數相等是mod此數的同餘,不是原整數都相等。
步驟識別與依賴
規則:flt_exact_signed_modulo_not_integer_equality · 依賴:G001, S012
S014 · implies
操作前
Fermat original modular exponent:step=0;previous[accumulator,base,exponent]=[1, 26, 96];low bit=0
操作後
next[accumulator,base,exponent]=[1, 94, 48];split exponent=2*q+bit preserves original-power invariant
條件:無
偶次方換成平方底數,奇次方多取一個底數進accumulator;每次合法取模保同餘,剩餘非負exponent減半故終止。
步驟識別與依賴
規則:flt_each_binary_power_step_exact_invariant · 依賴:G001, S013
S015 · calculation
操作前
Fermat original modular exponent bit1 current base square := mul(94, 94)
操作後
Fermat original modular exponent bit1 current base square = 8836
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S014
S016 · calculation
操作前
Fermat original modular exponent bit1 squared base reduction exact quotient := div(8836, 97)
操作後
Fermat original modular exponent bit1 squared base reduction exact quotient = 8836/97
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S015
S017 · calculation
操作前
Fermat original modular exponent bit1 squared base reduction floor quotient multiple := mul(91, 97)
操作後
Fermat original modular exponent bit1 squared base reduction floor quotient multiple = 8827
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S016
S018 · calculation
操作前
Fermat original modular exponent bit1 squared base reduction normalized remainder := sub(8836, 8827)
操作後
Fermat original modular exponent bit1 squared base reduction normalized remainder = 9
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S017
S019 · implies
操作前
Fermat original modular exponent bit1 squared base reduction:signed integer value=8836;positive modulus=97;exact quotient=8836/97;floor q=91
操作後
value=q*modulus+remainder;normalized remainder=9 in[0,97)
條件:無
用正模數與向下整數商核實同餘類,負base也得到非負代表。餘數相等是mod此數的同餘,不是原整數都相等。
步驟識別與依賴
規則:flt_exact_signed_modulo_not_integer_equality · 依賴:G001, S018
S020 · implies
操作前
Fermat original modular exponent:step=1;previous[accumulator,base,exponent]=[1, 94, 48];low bit=0
操作後
next[accumulator,base,exponent]=[1, 9, 24];split exponent=2*q+bit preserves original-power invariant
條件:無
偶次方換成平方底數,奇次方多取一個底數進accumulator;每次合法取模保同餘,剩餘非負exponent減半故終止。
步驟識別與依賴
規則:flt_each_binary_power_step_exact_invariant · 依賴:G001, S019
S021 · calculation
操作前
Fermat original modular exponent bit2 current base square := mul(9, 9)
操作後
Fermat original modular exponent bit2 current base square = 81
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S020
S022 · calculation
操作前
Fermat original modular exponent bit2 squared base reduction exact quotient := div(81, 97)
操作後
Fermat original modular exponent bit2 squared base reduction exact quotient = 81/97
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S021
S023 · calculation
操作前
Fermat original modular exponent bit2 squared base reduction floor quotient multiple := mul(0, 97)
操作後
Fermat original modular exponent bit2 squared base reduction floor quotient multiple = 0
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S022
S024 · calculation
操作前
Fermat original modular exponent bit2 squared base reduction normalized remainder := sub(81, 0)
操作後
Fermat original modular exponent bit2 squared base reduction normalized remainder = 81
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S023
S025 · implies
操作前
Fermat original modular exponent bit2 squared base reduction:signed integer value=81;positive modulus=97;exact quotient=81/97;floor q=0
操作後
value=q*modulus+remainder;normalized remainder=81 in[0,97)
條件:無
用正模數與向下整數商核實同餘類,負base也得到非負代表。餘數相等是mod此數的同餘,不是原整數都相等。
步驟識別與依賴
規則:flt_exact_signed_modulo_not_integer_equality · 依賴:G001, S024
S026 · implies
操作前
Fermat original modular exponent:step=2;previous[accumulator,base,exponent]=[1, 9, 24];low bit=0
操作後
next[accumulator,base,exponent]=[1, 81, 12];split exponent=2*q+bit preserves original-power invariant
條件:無
偶次方換成平方底數,奇次方多取一個底數進accumulator;每次合法取模保同餘,剩餘非負exponent減半故終止。
步驟識別與依賴
規則:flt_each_binary_power_step_exact_invariant · 依賴:G001, S025
S027 · calculation
操作前
Fermat original modular exponent bit3 current base square := mul(81, 81)
操作後
Fermat original modular exponent bit3 current base square = 6561
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S026
S028 · calculation
操作前
Fermat original modular exponent bit3 squared base reduction exact quotient := div(6561, 97)
操作後
Fermat original modular exponent bit3 squared base reduction exact quotient = 6561/97
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S027
S029 · calculation
操作前
Fermat original modular exponent bit3 squared base reduction floor quotient multiple := mul(67, 97)
操作後
Fermat original modular exponent bit3 squared base reduction floor quotient multiple = 6499
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S028
S030 · calculation
操作前
Fermat original modular exponent bit3 squared base reduction normalized remainder := sub(6561, 6499)
操作後
Fermat original modular exponent bit3 squared base reduction normalized remainder = 62
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S029
S031 · implies
操作前
Fermat original modular exponent bit3 squared base reduction:signed integer value=6561;positive modulus=97;exact quotient=6561/97;floor q=67
操作後
value=q*modulus+remainder;normalized remainder=62 in[0,97)
條件:無
用正模數與向下整數商核實同餘類,負base也得到非負代表。餘數相等是mod此數的同餘,不是原整數都相等。
步驟識別與依賴
規則:flt_exact_signed_modulo_not_integer_equality · 依賴:G001, S030
S032 · implies
操作前
Fermat original modular exponent:step=3;previous[accumulator,base,exponent]=[1, 81, 12];low bit=0
操作後
next[accumulator,base,exponent]=[1, 62, 6];split exponent=2*q+bit preserves original-power invariant
條件:無
偶次方換成平方底數,奇次方多取一個底數進accumulator;每次合法取模保同餘,剩餘非負exponent減半故終止。
步驟識別與依賴
規則:flt_each_binary_power_step_exact_invariant · 依賴:G001, S031
S033 · calculation
操作前
Fermat original modular exponent bit4 current base square := mul(62, 62)
操作後
Fermat original modular exponent bit4 current base square = 3844
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S032
S034 · calculation
操作前
Fermat original modular exponent bit4 squared base reduction exact quotient := div(3844, 97)
操作後
Fermat original modular exponent bit4 squared base reduction exact quotient = 3844/97
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S033
S035 · calculation
操作前
Fermat original modular exponent bit4 squared base reduction floor quotient multiple := mul(39, 97)
操作後
Fermat original modular exponent bit4 squared base reduction floor quotient multiple = 3783
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S034
S036 · calculation
操作前
Fermat original modular exponent bit4 squared base reduction normalized remainder := sub(3844, 3783)
操作後
Fermat original modular exponent bit4 squared base reduction normalized remainder = 61
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S035
S037 · implies
操作前
Fermat original modular exponent bit4 squared base reduction:signed integer value=3844;positive modulus=97;exact quotient=3844/97;floor q=39
操作後
value=q*modulus+remainder;normalized remainder=61 in[0,97)
條件:無
用正模數與向下整數商核實同餘類,負base也得到非負代表。餘數相等是mod此數的同餘,不是原整數都相等。
步驟識別與依賴
規則:flt_exact_signed_modulo_not_integer_equality · 依賴:G001, S036
S038 · implies
操作前
Fermat original modular exponent:step=4;previous[accumulator,base,exponent]=[1, 62, 6];low bit=0
操作後
next[accumulator,base,exponent]=[1, 61, 3];split exponent=2*q+bit preserves original-power invariant
條件:無
偶次方換成平方底數,奇次方多取一個底數進accumulator;每次合法取模保同餘,剩餘非負exponent減半故終止。
步驟識別與依賴
規則:flt_each_binary_power_step_exact_invariant · 依賴:G001, S037
S039 · calculation
操作前
Fermat original modular exponent bit5 accumulator product := mul(1, 61)
操作後
Fermat original modular exponent bit5 accumulator product = 61
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S038
S040 · calculation
操作前
Fermat original modular exponent bit5 accumulator reduction exact quotient := div(61, 97)
操作後
Fermat original modular exponent bit5 accumulator reduction exact quotient = 61/97
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S039
S041 · calculation
操作前
Fermat original modular exponent bit5 accumulator reduction floor quotient multiple := mul(0, 97)
操作後
Fermat original modular exponent bit5 accumulator reduction floor quotient multiple = 0
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S040
S042 · calculation
操作前
Fermat original modular exponent bit5 accumulator reduction normalized remainder := sub(61, 0)
操作後
Fermat original modular exponent bit5 accumulator reduction normalized remainder = 61
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S041
S043 · implies
操作前
Fermat original modular exponent bit5 accumulator reduction:signed integer value=61;positive modulus=97;exact quotient=61/97;floor q=0
操作後
value=q*modulus+remainder;normalized remainder=61 in[0,97)
條件:無
用正模數與向下整數商核實同餘類,負base也得到非負代表。餘數相等是mod此數的同餘,不是原整數都相等。
步驟識別與依賴
規則:flt_exact_signed_modulo_not_integer_equality · 依賴:G001, S042
S044 · calculation
操作前
Fermat original modular exponent bit5 current base square := mul(61, 61)
操作後
Fermat original modular exponent bit5 current base square = 3721
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S043
S045 · calculation
操作前
Fermat original modular exponent bit5 squared base reduction exact quotient := div(3721, 97)
操作後
Fermat original modular exponent bit5 squared base reduction exact quotient = 3721/97
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S044
S046 · calculation
操作前
Fermat original modular exponent bit5 squared base reduction floor quotient multiple := mul(38, 97)
操作後
Fermat original modular exponent bit5 squared base reduction floor quotient multiple = 3686
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S045
S047 · calculation
操作前
Fermat original modular exponent bit5 squared base reduction normalized remainder := sub(3721, 3686)
操作後
Fermat original modular exponent bit5 squared base reduction normalized remainder = 35
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S046
S048 · implies
操作前
Fermat original modular exponent bit5 squared base reduction:signed integer value=3721;positive modulus=97;exact quotient=3721/97;floor q=38
操作後
value=q*modulus+remainder;normalized remainder=35 in[0,97)
條件:無
用正模數與向下整數商核實同餘類,負base也得到非負代表。餘數相等是mod此數的同餘,不是原整數都相等。
步驟識別與依賴
規則:flt_exact_signed_modulo_not_integer_equality · 依賴:G001, S047
S049 · implies
操作前
Fermat original modular exponent:step=5;previous[accumulator,base,exponent]=[1, 61, 3];low bit=1
操作後
next[accumulator,base,exponent]=[61, 35, 1];split exponent=2*q+bit preserves original-power invariant
條件:無
偶次方換成平方底數,奇次方多取一個底數進accumulator;每次合法取模保同餘,剩餘非負exponent減半故終止。
步驟識別與依賴
規則:flt_each_binary_power_step_exact_invariant · 依賴:G001, S048
S050 · calculation
操作前
Fermat original modular exponent bit6 accumulator product := mul(61, 35)
操作後
Fermat original modular exponent bit6 accumulator product = 2135
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S049
S051 · calculation
操作前
Fermat original modular exponent bit6 accumulator reduction exact quotient := div(2135, 97)
操作後
Fermat original modular exponent bit6 accumulator reduction exact quotient = 2135/97
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S050
S052 · calculation
操作前
Fermat original modular exponent bit6 accumulator reduction floor quotient multiple := mul(22, 97)
操作後
Fermat original modular exponent bit6 accumulator reduction floor quotient multiple = 2134
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S051
S053 · calculation
操作前
Fermat original modular exponent bit6 accumulator reduction normalized remainder := sub(2135, 2134)
操作後
Fermat original modular exponent bit6 accumulator reduction normalized remainder = 1
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S052
S054 · implies
操作前
Fermat original modular exponent bit6 accumulator reduction:signed integer value=2135;positive modulus=97;exact quotient=2135/97;floor q=22
操作後
value=q*modulus+remainder;normalized remainder=1 in[0,97)
條件:無
用正模數與向下整數商核實同餘類,負base也得到非負代表。餘數相等是mod此數的同餘,不是原整數都相等。
步驟識別與依賴
規則:flt_exact_signed_modulo_not_integer_equality · 依賴:G001, S053
S055 · calculation
操作前
Fermat original modular exponent bit6 current base square := mul(35, 35)
操作後
Fermat original modular exponent bit6 current base square = 1225
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S054
S056 · calculation
操作前
Fermat original modular exponent bit6 squared base reduction exact quotient := div(1225, 97)
操作後
Fermat original modular exponent bit6 squared base reduction exact quotient = 1225/97
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S055
S057 · calculation
操作前
Fermat original modular exponent bit6 squared base reduction floor quotient multiple := mul(12, 97)
操作後
Fermat original modular exponent bit6 squared base reduction floor quotient multiple = 1164
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S056
S058 · calculation
操作前
Fermat original modular exponent bit6 squared base reduction normalized remainder := sub(1225, 1164)
操作後
Fermat original modular exponent bit6 squared base reduction normalized remainder = 61
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S057
S059 · implies
操作前
Fermat original modular exponent bit6 squared base reduction:signed integer value=1225;positive modulus=97;exact quotient=1225/97;floor q=12
操作後
value=q*modulus+remainder;normalized remainder=61 in[0,97)
條件:無
用正模數與向下整數商核實同餘類,負base也得到非負代表。餘數相等是mod此數的同餘,不是原整數都相等。
步驟識別與依賴
規則:flt_exact_signed_modulo_not_integer_equality · 依賴:G001, S058
S060 · implies
操作前
Fermat original modular exponent:step=6;previous[accumulator,base,exponent]=[61, 35, 1];low bit=1
操作後
next[accumulator,base,exponent]=[1, 61, 0];split exponent=2*q+bit preserves original-power invariant
條件:無
偶次方換成平方底數,奇次方多取一個底數進accumulator;每次合法取模保同餘,剩餘非負exponent減半故終止。
步驟識別與依賴
規則:flt_each_binary_power_step_exact_invariant · 依賴:G001, S059
S061 · implies
操作前
Fermat original modular exponent:remaining exponent0;final normalized accumulator=1
操作後
EXACT original base^96 modulo97=1
條件:無
不變式在remaining0時只剩accumulator,得到原始冪的確切餘數;這個算術結果本身不證模數prime。
步驟識別與依賴
規則:flt_modular_power_terminal_not_primality_converse · 依賴:G001, S060
S062 · calculation
操作前
Fermat actual unit inverse product := mul(26, 56)
操作後
Fermat actual unit inverse product = 1456
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S061
S063 · calculation
操作前
Fermat actual inverse identity exact quotient := div(1456, 97)
操作後
Fermat actual inverse identity exact quotient = 1456/97
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S062
S064 · calculation
操作前
Fermat actual inverse identity floor quotient multiple := mul(15, 97)
操作後
Fermat actual inverse identity floor quotient multiple = 1455
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S063
S065 · calculation
操作前
Fermat actual inverse identity normalized remainder := sub(1456, 1455)
操作後
Fermat actual inverse identity normalized remainder = 1
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S064
S066 · implies
操作前
Fermat actual inverse identity:signed integer value=1456;positive modulus=97;exact quotient=1456/97;floor q=15
操作後
value=q*modulus+remainder;normalized remainder=1 in[0,97)
條件:無
用正模數與向下整數商核實同餘類,負base也得到非負代表。餘數相等是mod此數的同餘,不是原整數都相等。
步驟識別與依賴
規則:flt_exact_signed_modulo_not_integer_equality · 依賴:G001, S065
S067 · implies
操作前
VERIFIED prime p=97;nonzero original base residue=26;ACTUAL inverse witness=56
操作後
multiplication r->a*r mod p permutes ALL nonzero residues1..p-1:inverse gives injectivity and finite self-injection gives surjectivity
條件:無
給出的真inverse讓相乘可取消,故非零residue集合上的乘a是雙射。這是任意residue的論證,不枚舉一百萬個點也不把幾個樣本當permutation證書。
步驟識別與依賴
規則:flt_prime_unit_permutation_all_residues_not_samples · 依賴:G001, S066
S068 · implies
操作前
same verified prime p=97;ALL nonzero residues permuted by multiplication by a=26
操作後
product over r=1..p-1 gives a^(p-1)*(p-1)! congruent to (p-1)!;EVERY factor is a prime-field unit,so factorial is a UNIT;cancel ONLY this nonzero unit to obtain a^(p-1) congruent1
條件:無
質數模數下每個1到p−1都與p互質,故各有inverse,有限乘積也有反序inverse;因此可取消factorial而得Fermat互質形式。沒有對0取消,也沒有把此全體非零residue論證套到合數的非單位元。
步驟識別與依賴
規則:flt_nonzero_factorial_unit_cancellation_not_zero_or_composite · 依賴:G001, S067