逐步推導
S001 · implies
操作前
source operation=flt-hypothesis-audit;original snapshot and mathematics retained
操作後
explicit ordered source output fields=[modulus, original_base, prime, coprime, coprime_form_applicable, power_modulus_minus_1, boundary]
條件:無
原題快照保留歷史介面標記;本頁直接列來源欄位順序,不需JavaScript或外部表。欄位標籤不自動成為數學證據,No依各題聲稱範圍解讀。
步驟識別與依賴
規則:source_ordered_interface_explicit_without_javascript · 依賴:G001
S002 · implies
操作前
ACTUAL integer modulus=20;complete trial range2..floor_sqrt=4
操作後
checked rows[divisor,quotient,remainder]=[[2, 10, 0]];first exact factor=2;prime=否
條件:無
若找到2到sqrt範圍的真因數就是合數見證。若全部試除無因數,任意合數分解必至少一因數≤sqrt,故排除全部合成情形;2的試除範圍空仍合法。不是以一次Fermat測試證prime。
步驟識別與依賴
規則:flt_primality_complete_trial_or_actual_factor_not_Fermat_test · 依賴:G001, S001
S003 · implies
操作前
original signed base=18;positive modulus=20;use nonnegative gcd inputs=[18, 20]
操作後
ALL Euclidean rows[left,right,q,r]=[[18, 20, 0, 18], [20, 18, 1, 2], [18, 2, 9, 0]];terminal nonnegative gcd=2;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(18, 20)
操作後
Fermat original signed base exact quotient = 9/10
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S003
S005 · calculation
操作前
Fermat original signed base floor quotient multiple := mul(0, 20)
操作後
Fermat original signed base floor quotient multiple = 0
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S004
S006 · calculation
操作前
Fermat original signed base normalized remainder := sub(18, 0)
操作後
Fermat original signed base normalized remainder = 18
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S005
S007 · implies
操作前
Fermat original signed base:signed integer value=18;positive modulus=20;exact quotient=9/10;floor q=0
操作後
value=q*modulus+remainder;normalized remainder=18 in[0,20)
條件:無
用正模數與向下整數商核實同餘類,負base也得到非負代表。餘數相等是mod此數的同餘,不是原整數都相等。
步驟識別與依賴
規則:flt_exact_signed_modulo_not_integer_equality · 依賴:G001, S006
S008 · implies
操作前
Fermat original modular exponent:original normalized base=18;original exponent=19;modulus=20
操作後
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 accumulator product := mul(1, 18)
操作後
Fermat original modular exponent bit0 accumulator product = 18
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S008
S010 · calculation
操作前
Fermat original modular exponent bit0 accumulator reduction exact quotient := div(18, 20)
操作後
Fermat original modular exponent bit0 accumulator reduction exact quotient = 9/10
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S009
S011 · calculation
操作前
Fermat original modular exponent bit0 accumulator reduction floor quotient multiple := mul(0, 20)
操作後
Fermat original modular exponent bit0 accumulator reduction floor quotient multiple = 0
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S010
S012 · calculation
操作前
Fermat original modular exponent bit0 accumulator reduction normalized remainder := sub(18, 0)
操作後
Fermat original modular exponent bit0 accumulator reduction normalized remainder = 18
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S011
S013 · implies
操作前
Fermat original modular exponent bit0 accumulator reduction:signed integer value=18;positive modulus=20;exact quotient=9/10;floor q=0
操作後
value=q*modulus+remainder;normalized remainder=18 in[0,20)
條件:無
用正模數與向下整數商核實同餘類,負base也得到非負代表。餘數相等是mod此數的同餘,不是原整數都相等。
步驟識別與依賴
規則:flt_exact_signed_modulo_not_integer_equality · 依賴:G001, S012
S014 · calculation
操作前
Fermat original modular exponent bit0 current base square := mul(18, 18)
操作後
Fermat original modular exponent bit0 current base square = 324
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S013
S015 · calculation
操作前
Fermat original modular exponent bit0 squared base reduction exact quotient := div(324, 20)
操作後
Fermat original modular exponent bit0 squared base reduction exact quotient = 81/5
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S014
S016 · calculation
操作前
Fermat original modular exponent bit0 squared base reduction floor quotient multiple := mul(16, 20)
操作後
Fermat original modular exponent bit0 squared base reduction floor quotient multiple = 320
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S015
S017 · calculation
操作前
Fermat original modular exponent bit0 squared base reduction normalized remainder := sub(324, 320)
操作後
Fermat original modular exponent bit0 squared base reduction normalized remainder = 4
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S016
S018 · implies
操作前
Fermat original modular exponent bit0 squared base reduction:signed integer value=324;positive modulus=20;exact quotient=81/5;floor q=16
操作後
value=q*modulus+remainder;normalized remainder=4 in[0,20)
條件:無
用正模數與向下整數商核實同餘類,負base也得到非負代表。餘數相等是mod此數的同餘,不是原整數都相等。
步驟識別與依賴
規則:flt_exact_signed_modulo_not_integer_equality · 依賴:G001, S017
S019 · implies
操作前
Fermat original modular exponent:step=0;previous[accumulator,base,exponent]=[1, 18, 19];low bit=1
操作後
next[accumulator,base,exponent]=[18, 4, 9];split exponent=2*q+bit preserves original-power invariant
條件:無
偶次方換成平方底數,奇次方多取一個底數進accumulator;每次合法取模保同餘,剩餘非負exponent減半故終止。
步驟識別與依賴
規則:flt_each_binary_power_step_exact_invariant · 依賴:G001, S018
S020 · calculation
操作前
Fermat original modular exponent bit1 accumulator product := mul(18, 4)
操作後
Fermat original modular exponent bit1 accumulator product = 72
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S019
S021 · calculation
操作前
Fermat original modular exponent bit1 accumulator reduction exact quotient := div(72, 20)
操作後
Fermat original modular exponent bit1 accumulator reduction exact quotient = 18/5
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S020
S022 · calculation
操作前
Fermat original modular exponent bit1 accumulator reduction floor quotient multiple := mul(3, 20)
操作後
Fermat original modular exponent bit1 accumulator reduction floor quotient multiple = 60
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S021
S023 · calculation
操作前
Fermat original modular exponent bit1 accumulator reduction normalized remainder := sub(72, 60)
操作後
Fermat original modular exponent bit1 accumulator reduction normalized remainder = 12
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S022
S024 · implies
操作前
Fermat original modular exponent bit1 accumulator reduction:signed integer value=72;positive modulus=20;exact quotient=18/5;floor q=3
操作後
value=q*modulus+remainder;normalized remainder=12 in[0,20)
條件:無
用正模數與向下整數商核實同餘類,負base也得到非負代表。餘數相等是mod此數的同餘,不是原整數都相等。
步驟識別與依賴
規則:flt_exact_signed_modulo_not_integer_equality · 依賴:G001, S023
S025 · calculation
操作前
Fermat original modular exponent bit1 current base square := mul(4, 4)
操作後
Fermat original modular exponent bit1 current base square = 16
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S024
S026 · calculation
操作前
Fermat original modular exponent bit1 squared base reduction exact quotient := div(16, 20)
操作後
Fermat original modular exponent bit1 squared base reduction exact quotient = 4/5
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S025
S027 · calculation
操作前
Fermat original modular exponent bit1 squared base reduction floor quotient multiple := mul(0, 20)
操作後
Fermat original modular exponent bit1 squared base reduction floor quotient multiple = 0
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S026
S028 · calculation
操作前
Fermat original modular exponent bit1 squared base reduction normalized remainder := sub(16, 0)
操作後
Fermat original modular exponent bit1 squared base reduction normalized remainder = 16
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S027
S029 · implies
操作前
Fermat original modular exponent bit1 squared base reduction:signed integer value=16;positive modulus=20;exact quotient=4/5;floor q=0
操作後
value=q*modulus+remainder;normalized remainder=16 in[0,20)
條件:無
用正模數與向下整數商核實同餘類,負base也得到非負代表。餘數相等是mod此數的同餘,不是原整數都相等。
步驟識別與依賴
規則:flt_exact_signed_modulo_not_integer_equality · 依賴:G001, S028
S030 · implies
操作前
Fermat original modular exponent:step=1;previous[accumulator,base,exponent]=[18, 4, 9];low bit=1
操作後
next[accumulator,base,exponent]=[12, 16, 4];split exponent=2*q+bit preserves original-power invariant
條件:無
偶次方換成平方底數,奇次方多取一個底數進accumulator;每次合法取模保同餘,剩餘非負exponent減半故終止。
步驟識別與依賴
規則:flt_each_binary_power_step_exact_invariant · 依賴:G001, S029
S031 · calculation
操作前
Fermat original modular exponent bit2 current base square := mul(16, 16)
操作後
Fermat original modular exponent bit2 current base square = 256
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S030
S032 · calculation
操作前
Fermat original modular exponent bit2 squared base reduction exact quotient := div(256, 20)
操作後
Fermat original modular exponent bit2 squared base reduction exact quotient = 64/5
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S031
S033 · calculation
操作前
Fermat original modular exponent bit2 squared base reduction floor quotient multiple := mul(12, 20)
操作後
Fermat original modular exponent bit2 squared base reduction floor quotient multiple = 240
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S032
S034 · calculation
操作前
Fermat original modular exponent bit2 squared base reduction normalized remainder := sub(256, 240)
操作後
Fermat original modular exponent bit2 squared base reduction normalized remainder = 16
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S033
S035 · implies
操作前
Fermat original modular exponent bit2 squared base reduction:signed integer value=256;positive modulus=20;exact quotient=64/5;floor q=12
操作後
value=q*modulus+remainder;normalized remainder=16 in[0,20)
條件:無
用正模數與向下整數商核實同餘類,負base也得到非負代表。餘數相等是mod此數的同餘,不是原整數都相等。
步驟識別與依賴
規則:flt_exact_signed_modulo_not_integer_equality · 依賴:G001, S034
S036 · implies
操作前
Fermat original modular exponent:step=2;previous[accumulator,base,exponent]=[12, 16, 4];low bit=0
操作後
next[accumulator,base,exponent]=[12, 16, 2];split exponent=2*q+bit preserves original-power invariant
條件:無
偶次方換成平方底數,奇次方多取一個底數進accumulator;每次合法取模保同餘,剩餘非負exponent減半故終止。
步驟識別與依賴
規則:flt_each_binary_power_step_exact_invariant · 依賴:G001, S035
S037 · calculation
操作前
Fermat original modular exponent bit3 current base square := mul(16, 16)
操作後
Fermat original modular exponent bit3 current base square = 256
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S036
S038 · calculation
操作前
Fermat original modular exponent bit3 squared base reduction exact quotient := div(256, 20)
操作後
Fermat original modular exponent bit3 squared base reduction exact quotient = 64/5
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S037
S039 · calculation
操作前
Fermat original modular exponent bit3 squared base reduction floor quotient multiple := mul(12, 20)
操作後
Fermat original modular exponent bit3 squared base reduction floor quotient multiple = 240
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S038
S040 · calculation
操作前
Fermat original modular exponent bit3 squared base reduction normalized remainder := sub(256, 240)
操作後
Fermat original modular exponent bit3 squared base reduction normalized remainder = 16
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S039
S041 · implies
操作前
Fermat original modular exponent bit3 squared base reduction:signed integer value=256;positive modulus=20;exact quotient=64/5;floor q=12
操作後
value=q*modulus+remainder;normalized remainder=16 in[0,20)
條件:無
用正模數與向下整數商核實同餘類,負base也得到非負代表。餘數相等是mod此數的同餘,不是原整數都相等。
步驟識別與依賴
規則:flt_exact_signed_modulo_not_integer_equality · 依賴:G001, S040
S042 · implies
操作前
Fermat original modular exponent:step=3;previous[accumulator,base,exponent]=[12, 16, 2];low bit=0
操作後
next[accumulator,base,exponent]=[12, 16, 1];split exponent=2*q+bit preserves original-power invariant
條件:無
偶次方換成平方底數,奇次方多取一個底數進accumulator;每次合法取模保同餘,剩餘非負exponent減半故終止。
步驟識別與依賴
規則:flt_each_binary_power_step_exact_invariant · 依賴:G001, S041
S043 · calculation
操作前
Fermat original modular exponent bit4 accumulator product := mul(12, 16)
操作後
Fermat original modular exponent bit4 accumulator product = 192
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S042
S044 · calculation
操作前
Fermat original modular exponent bit4 accumulator reduction exact quotient := div(192, 20)
操作後
Fermat original modular exponent bit4 accumulator reduction exact quotient = 48/5
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S043
S045 · calculation
操作前
Fermat original modular exponent bit4 accumulator reduction floor quotient multiple := mul(9, 20)
操作後
Fermat original modular exponent bit4 accumulator reduction floor quotient multiple = 180
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S044
S046 · calculation
操作前
Fermat original modular exponent bit4 accumulator reduction normalized remainder := sub(192, 180)
操作後
Fermat original modular exponent bit4 accumulator reduction normalized remainder = 12
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S045
S047 · implies
操作前
Fermat original modular exponent bit4 accumulator reduction:signed integer value=192;positive modulus=20;exact quotient=48/5;floor q=9
操作後
value=q*modulus+remainder;normalized remainder=12 in[0,20)
條件:無
用正模數與向下整數商核實同餘類,負base也得到非負代表。餘數相等是mod此數的同餘,不是原整數都相等。
步驟識別與依賴
規則:flt_exact_signed_modulo_not_integer_equality · 依賴:G001, S046
S048 · calculation
操作前
Fermat original modular exponent bit4 current base square := mul(16, 16)
操作後
Fermat original modular exponent bit4 current base square = 256
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S047
S049 · calculation
操作前
Fermat original modular exponent bit4 squared base reduction exact quotient := div(256, 20)
操作後
Fermat original modular exponent bit4 squared base reduction exact quotient = 64/5
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S048
S050 · calculation
操作前
Fermat original modular exponent bit4 squared base reduction floor quotient multiple := mul(12, 20)
操作後
Fermat original modular exponent bit4 squared base reduction floor quotient multiple = 240
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S049
S051 · calculation
操作前
Fermat original modular exponent bit4 squared base reduction normalized remainder := sub(256, 240)
操作後
Fermat original modular exponent bit4 squared base reduction normalized remainder = 16
條件:無
依原始角色與已核中間量精確代值,保留正負號、分母、索引及所在載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S050
S052 · implies
操作前
Fermat original modular exponent bit4 squared base reduction:signed integer value=256;positive modulus=20;exact quotient=64/5;floor q=12
操作後
value=q*modulus+remainder;normalized remainder=16 in[0,20)
條件:無
用正模數與向下整數商核實同餘類,負base也得到非負代表。餘數相等是mod此數的同餘,不是原整數都相等。
步驟識別與依賴
規則:flt_exact_signed_modulo_not_integer_equality · 依賴:G001, S051
S053 · implies
操作前
Fermat original modular exponent:step=4;previous[accumulator,base,exponent]=[12, 16, 1];low bit=1
操作後
next[accumulator,base,exponent]=[12, 16, 0];split exponent=2*q+bit preserves original-power invariant
條件:無
偶次方換成平方底數,奇次方多取一個底數進accumulator;每次合法取模保同餘,剩餘非負exponent減半故終止。
步驟識別與依賴
規則:flt_each_binary_power_step_exact_invariant · 依賴:G001, S052
S054 · implies
操作前
Fermat original modular exponent:remaining exponent0;final normalized accumulator=12
操作後
EXACT original base^19 modulo20=12
條件:無
不變式在remaining0時只剩accumulator,得到原始冪的確切餘數;這個算術結果本身不證模數prime。
步驟識別與依賴
規則:flt_modular_power_terminal_not_primality_converse · 依賴:G001, S053
S055 · implies
操作前
ACTUAL modulus=20;ORIGINAL signed base=18;prime=否;coprime=否;actual power residue=12
操作後
prime-coprime applicability=否;failed hypotheses do NOT force actual residue!=1;one successful residue does NOT prove prime
條件:無
joint flag是兩個前提的合取,不是把算出的冪與1比較。合數也可能對某個base得到1;不適用不等於算術一定失敗,算術通過也不等於prime。
步驟識別與依賴
規則:flt_applicability_not_actual_power_failure_or_converse · 依賴:G001, S054