逐步推導
S001 · implies
操作前
source roles = [wilson-composite-instance]
操作後
derived = [[n, prime, running_factorial_residues, factorial_residue, minus_one_residue, Wilson_congruence_fails, finite_scope]]
條件:無
直接明列此操作與mode完整欄序,不依JavaScript、不由答案形狀猜角色;布林、字串、null與未作聲稱保持不同。
步驟識別與依賴
規則:source_ordered_fields_without_JS · 依賴:G001
S002 · calculation
操作前
Wilson ORIGINAL factorial ORIGINAL running factorial product1 := mul(1, 1)
操作後
Wilson ORIGINAL factorial ORIGINAL running factorial product1 = 1
條件:無
以原始角色與已證中間量精確代值,不用近似或自洽但換過的操作數;額外教學代數不另縮來源域。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S001
S003 · implies
操作前
source roles = [Wilson ORIGINAL factorial, 25, 1, 1, 1]
操作後
derived = [0, 1, 是, 是]
條件:無
逐k保前residue與完整乘積,再以唯一Euclidean餘數縮回0..n-1;累積不變量是value≡k! mod n,不把table最後一項當未算的假設。
步驟識別與依賴
規則:Wilson_EACH_running_factorial_exact_Euclidean_remainder · 依賴:G001, S002
S004 · calculation
操作前
Wilson ORIGINAL factorial ORIGINAL running factorial product2 := mul(1, 2)
操作後
Wilson ORIGINAL factorial ORIGINAL running factorial product2 = 2
條件:無
以原始角色與已證中間量精確代值,不用近似或自洽但換過的操作數;額外教學代數不另縮來源域。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S003
S005 · implies
操作前
source roles = [Wilson ORIGINAL factorial, 25, 2, 1, 2]
操作後
derived = [0, 2, 是, 是]
條件:無
逐k保前residue與完整乘積,再以唯一Euclidean餘數縮回0..n-1;累積不變量是value≡k! mod n,不把table最後一項當未算的假設。
步驟識別與依賴
規則:Wilson_EACH_running_factorial_exact_Euclidean_remainder · 依賴:G001, S004
S006 · calculation
操作前
Wilson ORIGINAL factorial ORIGINAL running factorial product3 := mul(2, 3)
操作後
Wilson ORIGINAL factorial ORIGINAL running factorial product3 = 6
條件:無
以原始角色與已證中間量精確代值,不用近似或自洽但換過的操作數;額外教學代數不另縮來源域。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S005
S007 · implies
操作前
source roles = [Wilson ORIGINAL factorial, 25, 3, 2, 6]
操作後
derived = [0, 6, 是, 是]
條件:無
逐k保前residue與完整乘積,再以唯一Euclidean餘數縮回0..n-1;累積不變量是value≡k! mod n,不把table最後一項當未算的假設。
步驟識別與依賴
規則:Wilson_EACH_running_factorial_exact_Euclidean_remainder · 依賴:G001, S006
S008 · calculation
操作前
Wilson ORIGINAL factorial ORIGINAL running factorial product4 := mul(6, 4)
操作後
Wilson ORIGINAL factorial ORIGINAL running factorial product4 = 24
條件:無
以原始角色與已證中間量精確代值,不用近似或自洽但換過的操作數;額外教學代數不另縮來源域。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S007
S009 · implies
操作前
source roles = [Wilson ORIGINAL factorial, 25, 4, 6, 24]
操作後
derived = [0, 24, 是, 是]
條件:無
逐k保前residue與完整乘積,再以唯一Euclidean餘數縮回0..n-1;累積不變量是value≡k! mod n,不把table最後一項當未算的假設。
步驟識別與依賴
規則:Wilson_EACH_running_factorial_exact_Euclidean_remainder · 依賴:G001, S008
S010 · calculation
操作前
Wilson ORIGINAL factorial ORIGINAL running factorial product5 := mul(24, 5)
操作後
Wilson ORIGINAL factorial ORIGINAL running factorial product5 = 120
條件:無
以原始角色與已證中間量精確代值,不用近似或自洽但換過的操作數;額外教學代數不另縮來源域。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S009
S011 · implies
操作前
source roles = [Wilson ORIGINAL factorial, 25, 5, 24, 120]
操作後
derived = [4, 20, 是, 是]
條件:無
逐k保前residue與完整乘積,再以唯一Euclidean餘數縮回0..n-1;累積不變量是value≡k! mod n,不把table最後一項當未算的假設。
步驟識別與依賴
規則:Wilson_EACH_running_factorial_exact_Euclidean_remainder · 依賴:G001, S010
S012 · calculation
操作前
Wilson ORIGINAL factorial ORIGINAL running factorial product6 := mul(20, 6)
操作後
Wilson ORIGINAL factorial ORIGINAL running factorial product6 = 120
條件:無
以原始角色與已證中間量精確代值,不用近似或自洽但換過的操作數;額外教學代數不另縮來源域。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S011
S013 · implies
操作前
source roles = [Wilson ORIGINAL factorial, 25, 6, 20, 120]
操作後
derived = [4, 20, 是, 是]
條件:無
逐k保前residue與完整乘積,再以唯一Euclidean餘數縮回0..n-1;累積不變量是value≡k! mod n,不把table最後一項當未算的假設。
步驟識別與依賴
規則:Wilson_EACH_running_factorial_exact_Euclidean_remainder · 依賴:G001, S012
S014 · calculation
操作前
Wilson ORIGINAL factorial ORIGINAL running factorial product7 := mul(20, 7)
操作後
Wilson ORIGINAL factorial ORIGINAL running factorial product7 = 140
條件:無
以原始角色與已證中間量精確代值,不用近似或自洽但換過的操作數;額外教學代數不另縮來源域。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S013
S015 · implies
操作前
source roles = [Wilson ORIGINAL factorial, 25, 7, 20, 140]
操作後
derived = [5, 15, 是, 是]
條件:無
逐k保前residue與完整乘積,再以唯一Euclidean餘數縮回0..n-1;累積不變量是value≡k! mod n,不把table最後一項當未算的假設。
步驟識別與依賴
規則:Wilson_EACH_running_factorial_exact_Euclidean_remainder · 依賴:G001, S014
S016 · calculation
操作前
Wilson ORIGINAL factorial ORIGINAL running factorial product8 := mul(15, 8)
操作後
Wilson ORIGINAL factorial ORIGINAL running factorial product8 = 120
條件:無
以原始角色與已證中間量精確代值,不用近似或自洽但換過的操作數;額外教學代數不另縮來源域。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S015
S017 · implies
操作前
source roles = [Wilson ORIGINAL factorial, 25, 8, 15, 120]
操作後
derived = [4, 20, 是, 是]
條件:無
逐k保前residue與完整乘積,再以唯一Euclidean餘數縮回0..n-1;累積不變量是value≡k! mod n,不把table最後一項當未算的假設。
步驟識別與依賴
規則:Wilson_EACH_running_factorial_exact_Euclidean_remainder · 依賴:G001, S016
S018 · calculation
操作前
Wilson ORIGINAL factorial ORIGINAL running factorial product9 := mul(20, 9)
操作後
Wilson ORIGINAL factorial ORIGINAL running factorial product9 = 180
條件:無
以原始角色與已證中間量精確代值,不用近似或自洽但換過的操作數;額外教學代數不另縮來源域。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S017
S019 · implies
操作前
source roles = [Wilson ORIGINAL factorial, 25, 9, 20, 180]
操作後
derived = [7, 5, 是, 是]
條件:無
逐k保前residue與完整乘積,再以唯一Euclidean餘數縮回0..n-1;累積不變量是value≡k! mod n,不把table最後一項當未算的假設。
步驟識別與依賴
規則:Wilson_EACH_running_factorial_exact_Euclidean_remainder · 依賴:G001, S018
S020 · calculation
操作前
Wilson ORIGINAL factorial ORIGINAL running factorial product10 := mul(5, 10)
操作後
Wilson ORIGINAL factorial ORIGINAL running factorial product10 = 50
條件:無
以原始角色與已證中間量精確代值,不用近似或自洽但換過的操作數;額外教學代數不另縮來源域。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S019
S021 · implies
操作前
source roles = [Wilson ORIGINAL factorial, 25, 10, 5, 50]
操作後
derived = [2, 0, 是, 是]
條件:無
逐k保前residue與完整乘積,再以唯一Euclidean餘數縮回0..n-1;累積不變量是value≡k! mod n,不把table最後一項當未算的假設。
步驟識別與依賴
規則:Wilson_EACH_running_factorial_exact_Euclidean_remainder · 依賴:G001, S020
S022 · calculation
操作前
Wilson ORIGINAL factorial ORIGINAL running factorial product11 := mul(0, 11)
操作後
Wilson ORIGINAL factorial ORIGINAL running factorial product11 = 0
條件:無
以原始角色與已證中間量精確代值,不用近似或自洽但換過的操作數;額外教學代數不另縮來源域。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S021
S023 · implies
操作前
source roles = [Wilson ORIGINAL factorial, 25, 11, 0, 0]
操作後
derived = [0, 0, 是, 是]
條件:無
逐k保前residue與完整乘積,再以唯一Euclidean餘數縮回0..n-1;累積不變量是value≡k! mod n,不把table最後一項當未算的假設。
步驟識別與依賴
規則:Wilson_EACH_running_factorial_exact_Euclidean_remainder · 依賴:G001, S022
S024 · calculation
操作前
Wilson ORIGINAL factorial ORIGINAL running factorial product12 := mul(0, 12)
操作後
Wilson ORIGINAL factorial ORIGINAL running factorial product12 = 0
條件:無
以原始角色與已證中間量精確代值,不用近似或自洽但換過的操作數;額外教學代數不另縮來源域。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S023
S025 · implies
操作前
source roles = [Wilson ORIGINAL factorial, 25, 12, 0, 0]
操作後
derived = [0, 0, 是, 是]
條件:無
逐k保前residue與完整乘積,再以唯一Euclidean餘數縮回0..n-1;累積不變量是value≡k! mod n,不把table最後一項當未算的假設。
步驟識別與依賴
規則:Wilson_EACH_running_factorial_exact_Euclidean_remainder · 依賴:G001, S024
S026 · calculation
操作前
Wilson ORIGINAL factorial ORIGINAL running factorial product13 := mul(0, 13)
操作後
Wilson ORIGINAL factorial ORIGINAL running factorial product13 = 0
條件:無
以原始角色與已證中間量精確代值,不用近似或自洽但換過的操作數;額外教學代數不另縮來源域。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S025
S027 · implies
操作前
source roles = [Wilson ORIGINAL factorial, 25, 13, 0, 0]
操作後
derived = [0, 0, 是, 是]
條件:無
逐k保前residue與完整乘積,再以唯一Euclidean餘數縮回0..n-1;累積不變量是value≡k! mod n,不把table最後一項當未算的假設。
步驟識別與依賴
規則:Wilson_EACH_running_factorial_exact_Euclidean_remainder · 依賴:G001, S026
S028 · calculation
操作前
Wilson ORIGINAL factorial ORIGINAL running factorial product14 := mul(0, 14)
操作後
Wilson ORIGINAL factorial ORIGINAL running factorial product14 = 0
條件:無
以原始角色與已證中間量精確代值,不用近似或自洽但換過的操作數;額外教學代數不另縮來源域。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S027
S029 · implies
操作前
source roles = [Wilson ORIGINAL factorial, 25, 14, 0, 0]
操作後
derived = [0, 0, 是, 是]
條件:無
逐k保前residue與完整乘積,再以唯一Euclidean餘數縮回0..n-1;累積不變量是value≡k! mod n,不把table最後一項當未算的假設。
步驟識別與依賴
規則:Wilson_EACH_running_factorial_exact_Euclidean_remainder · 依賴:G001, S028
S030 · calculation
操作前
Wilson ORIGINAL factorial ORIGINAL running factorial product15 := mul(0, 15)
操作後
Wilson ORIGINAL factorial ORIGINAL running factorial product15 = 0
條件:無
以原始角色與已證中間量精確代值,不用近似或自洽但換過的操作數;額外教學代數不另縮來源域。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S029
S031 · implies
操作前
source roles = [Wilson ORIGINAL factorial, 25, 15, 0, 0]
操作後
derived = [0, 0, 是, 是]
條件:無
逐k保前residue與完整乘積,再以唯一Euclidean餘數縮回0..n-1;累積不變量是value≡k! mod n,不把table最後一項當未算的假設。
步驟識別與依賴
規則:Wilson_EACH_running_factorial_exact_Euclidean_remainder · 依賴:G001, S030
S032 · calculation
操作前
Wilson ORIGINAL factorial ORIGINAL running factorial product16 := mul(0, 16)
操作後
Wilson ORIGINAL factorial ORIGINAL running factorial product16 = 0
條件:無
以原始角色與已證中間量精確代值,不用近似或自洽但換過的操作數;額外教學代數不另縮來源域。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S031
S033 · implies
操作前
source roles = [Wilson ORIGINAL factorial, 25, 16, 0, 0]
操作後
derived = [0, 0, 是, 是]
條件:無
逐k保前residue與完整乘積,再以唯一Euclidean餘數縮回0..n-1;累積不變量是value≡k! mod n,不把table最後一項當未算的假設。
步驟識別與依賴
規則:Wilson_EACH_running_factorial_exact_Euclidean_remainder · 依賴:G001, S032
S034 · calculation
操作前
Wilson ORIGINAL factorial ORIGINAL running factorial product17 := mul(0, 17)
操作後
Wilson ORIGINAL factorial ORIGINAL running factorial product17 = 0
條件:無
以原始角色與已證中間量精確代值,不用近似或自洽但換過的操作數;額外教學代數不另縮來源域。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S033
S035 · implies
操作前
source roles = [Wilson ORIGINAL factorial, 25, 17, 0, 0]
操作後
derived = [0, 0, 是, 是]
條件:無
逐k保前residue與完整乘積,再以唯一Euclidean餘數縮回0..n-1;累積不變量是value≡k! mod n,不把table最後一項當未算的假設。
步驟識別與依賴
規則:Wilson_EACH_running_factorial_exact_Euclidean_remainder · 依賴:G001, S034
S036 · calculation
操作前
Wilson ORIGINAL factorial ORIGINAL running factorial product18 := mul(0, 18)
操作後
Wilson ORIGINAL factorial ORIGINAL running factorial product18 = 0
條件:無
以原始角色與已證中間量精確代值,不用近似或自洽但換過的操作數;額外教學代數不另縮來源域。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S035
S037 · implies
操作前
source roles = [Wilson ORIGINAL factorial, 25, 18, 0, 0]
操作後
derived = [0, 0, 是, 是]
條件:無
逐k保前residue與完整乘積,再以唯一Euclidean餘數縮回0..n-1;累積不變量是value≡k! mod n,不把table最後一項當未算的假設。
步驟識別與依賴
規則:Wilson_EACH_running_factorial_exact_Euclidean_remainder · 依賴:G001, S036
S038 · calculation
操作前
Wilson ORIGINAL factorial ORIGINAL running factorial product19 := mul(0, 19)
操作後
Wilson ORIGINAL factorial ORIGINAL running factorial product19 = 0
條件:無
以原始角色與已證中間量精確代值,不用近似或自洽但換過的操作數;額外教學代數不另縮來源域。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S037
S039 · implies
操作前
source roles = [Wilson ORIGINAL factorial, 25, 19, 0, 0]
操作後
derived = [0, 0, 是, 是]
條件:無
逐k保前residue與完整乘積,再以唯一Euclidean餘數縮回0..n-1;累積不變量是value≡k! mod n,不把table最後一項當未算的假設。
步驟識別與依賴
規則:Wilson_EACH_running_factorial_exact_Euclidean_remainder · 依賴:G001, S038
S040 · calculation
操作前
Wilson ORIGINAL factorial ORIGINAL running factorial product20 := mul(0, 20)
操作後
Wilson ORIGINAL factorial ORIGINAL running factorial product20 = 0
條件:無
以原始角色與已證中間量精確代值,不用近似或自洽但換過的操作數;額外教學代數不另縮來源域。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S039
S041 · implies
操作前
source roles = [Wilson ORIGINAL factorial, 25, 20, 0, 0]
操作後
derived = [0, 0, 是, 是]
條件:無
逐k保前residue與完整乘積,再以唯一Euclidean餘數縮回0..n-1;累積不變量是value≡k! mod n,不把table最後一項當未算的假設。
步驟識別與依賴
規則:Wilson_EACH_running_factorial_exact_Euclidean_remainder · 依賴:G001, S040
S042 · calculation
操作前
Wilson ORIGINAL factorial ORIGINAL running factorial product21 := mul(0, 21)
操作後
Wilson ORIGINAL factorial ORIGINAL running factorial product21 = 0
條件:無
以原始角色與已證中間量精確代值,不用近似或自洽但換過的操作數;額外教學代數不另縮來源域。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S041
S043 · implies
操作前
source roles = [Wilson ORIGINAL factorial, 25, 21, 0, 0]
操作後
derived = [0, 0, 是, 是]
條件:無
逐k保前residue與完整乘積,再以唯一Euclidean餘數縮回0..n-1;累積不變量是value≡k! mod n,不把table最後一項當未算的假設。
步驟識別與依賴
規則:Wilson_EACH_running_factorial_exact_Euclidean_remainder · 依賴:G001, S042
S044 · calculation
操作前
Wilson ORIGINAL factorial ORIGINAL running factorial product22 := mul(0, 22)
操作後
Wilson ORIGINAL factorial ORIGINAL running factorial product22 = 0
條件:無
以原始角色與已證中間量精確代值,不用近似或自洽但換過的操作數;額外教學代數不另縮來源域。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S043
S045 · implies
操作前
source roles = [Wilson ORIGINAL factorial, 25, 22, 0, 0]
操作後
derived = [0, 0, 是, 是]
條件:無
逐k保前residue與完整乘積,再以唯一Euclidean餘數縮回0..n-1;累積不變量是value≡k! mod n,不把table最後一項當未算的假設。
步驟識別與依賴
規則:Wilson_EACH_running_factorial_exact_Euclidean_remainder · 依賴:G001, S044
S046 · calculation
操作前
Wilson ORIGINAL factorial ORIGINAL running factorial product23 := mul(0, 23)
操作後
Wilson ORIGINAL factorial ORIGINAL running factorial product23 = 0
條件:無
以原始角色與已證中間量精確代值,不用近似或自洽但換過的操作數;額外教學代數不另縮來源域。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S045
S047 · implies
操作前
source roles = [Wilson ORIGINAL factorial, 25, 23, 0, 0]
操作後
derived = [0, 0, 是, 是]
條件:無
逐k保前residue與完整乘積,再以唯一Euclidean餘數縮回0..n-1;累積不變量是value≡k! mod n,不把table最後一項當未算的假設。
步驟識別與依賴
規則:Wilson_EACH_running_factorial_exact_Euclidean_remainder · 依賴:G001, S046
S048 · calculation
操作前
Wilson ORIGINAL factorial ORIGINAL running factorial product24 := mul(0, 24)
操作後
Wilson ORIGINAL factorial ORIGINAL running factorial product24 = 0
條件:無
以原始角色與已證中間量精確代值,不用近似或自洽但換過的操作數;額外教學代數不另縮來源域。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S047
S049 · implies
操作前
source roles = [Wilson ORIGINAL factorial, 25, 24, 0, 0]
操作後
derived = [0, 0, 是, 是]
條件:無
逐k保前residue與完整乘積,再以唯一Euclidean餘數縮回0..n-1;累積不變量是value≡k! mod n,不把table最後一項當未算的假設。
步驟識別與依賴
規則:Wilson_EACH_running_factorial_exact_Euclidean_remainder · 依賴:G001, S048
S050 · implies
操作前
source roles = [25, [[1, 1], [2, 2], [3, 6], [4, 24], [5, 20], [6, 20], [7, 15], [8, 20], [9, 5], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0]]]
操作後
derived = [否, 0, 24, 否, 是]
條件:無
prime與congruence分別驗;合數時兩者都False也可equivalenceTrue。一般converse另有理由:若合數有proper divisor d>=2,d同除n與(n-1)!;假設後者≡-1 mod n便使d除1,矛盾。此推理不等於一個有限instance或finite cutoff測試。
步驟識別與依賴
規則:Wilson_prime_classification_instance_flags_AND_separate_converse_reason · 依賴:G001, S049
結論
(25, 否, [[1, 1], [2, 2], [3, 6], [4, 24], [5, 20], [6, 20], [7, 15], [8, 20], [9, 5], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0]], 0, 24, 是, finite_composite_instance_not_converse_proof)
依上列完整代值及條件核對得到原題答案;原題編號、格式與狀態保持不變。