R0047-24135 · q-20261015-advance-20261113-r04-euler-criterion-quadratic-residue-0010
逐步推導
S001 · implies
操作前
source roles = [eulercrit-domain-qualification]
操作後
derived = [[prime, a, normalized_class, odd_prime, nonzero_class, certificate]]
條件:無
本頁列完整來源欄序,不需JavaScript;gradient boundary依原mode選6/8/7欄,不補欄也不由答案猜mode。
步驟識別與依賴
規則:source_ordered_fields_without_JS · 依賴:G001
S002 · implies
操作前
source roles = [31]
操作後
derived = [[[2, 1], [3, 1], [4, 3], [5, 1]], 是]
條件:無
合數必有不大於平方根的因數,故完整試除驗模數資格;這不由平方性或Euler等式猜測。
步驟識別與依賴
規則:Euler_modulus_primality_complete_trial · 依賴:G001, S001
S003 · calculation
操作前
Euler ORIGINAL signed quotient times modulus := mul(0, 31)
操作後
Euler ORIGINAL signed quotient times modulus = 0
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S002
S004 · calculation
操作前
Euler ORIGINAL signed a minus modulus multiple := sub(10, 0)
操作後
Euler ORIGINAL signed a minus modulus multiple = 10
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S003
S005 · implies
操作前
source roles = [10, 31, 0]
操作後
derived = [10, 是]
條件:無
a=qp+r、0<=r<p保負a同一類;原a在指定欄位保留。
步驟識別與依賴
規則:Euler_Euclidean_class_before_hypothesis · 依賴:G001, S004
S006 · implies
操作前
source roles = [31, 10, 10]
操作後
derived = [是, 是]
條件:無
先獨立驗odd prime與非零類;平方表先定義Legendre,再比較冪。
步驟識別與依賴
規則:Euler_odd_prime_nonzero_qualified · 依賴:G001, S005
S007 · calculation
操作前
Euler square root candidate1 := mul(1, 1)
操作後
Euler square root candidate1 = 1
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S006
S008 · calculation
操作前
Euler square root candidate2 := mul(2, 2)
操作後
Euler square root candidate2 = 4
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S007
S009 · calculation
操作前
Euler square root candidate3 := mul(3, 3)
操作後
Euler square root candidate3 = 9
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S008
S010 · calculation
操作前
Euler square root candidate4 := mul(4, 4)
操作後
Euler square root candidate4 = 16
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S009
S011 · calculation
操作前
Euler square root candidate5 := mul(5, 5)
操作後
Euler square root candidate5 = 25
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S010
S012 · calculation
操作前
Euler square root candidate6 := mul(6, 6)
操作後
Euler square root candidate6 = 36
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S011
S013 · calculation
操作前
Euler square root candidate7 := mul(7, 7)
操作後
Euler square root candidate7 = 49
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S012
S014 · calculation
操作前
Euler square root candidate8 := mul(8, 8)
操作後
Euler square root candidate8 = 64
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S013
S015 · calculation
操作前
Euler square root candidate9 := mul(9, 9)
操作後
Euler square root candidate9 = 81
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S014
S016 · calculation
操作前
Euler square root candidate10 := mul(10, 10)
操作後
Euler square root candidate10 = 100
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S015
S017 · calculation
操作前
Euler square root candidate11 := mul(11, 11)
操作後
Euler square root candidate11 = 121
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S016
S018 · calculation
操作前
Euler square root candidate12 := mul(12, 12)
操作後
Euler square root candidate12 = 144
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S017
S019 · calculation
操作前
Euler square root candidate13 := mul(13, 13)
操作後
Euler square root candidate13 = 169
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S018
S020 · calculation
操作前
Euler square root candidate14 := mul(14, 14)
操作後
Euler square root candidate14 = 196
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S019
S021 · calculation
操作前
Euler square root candidate15 := mul(15, 15)
操作後
Euler square root candidate15 = 225
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S020
S022 · calculation
操作前
Euler square root candidate16 := mul(16, 16)
操作後
Euler square root candidate16 = 256
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S021
S023 · calculation
操作前
Euler square root candidate17 := mul(17, 17)
操作後
Euler square root candidate17 = 289
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S022
S024 · calculation
操作前
Euler square root candidate18 := mul(18, 18)
操作後
Euler square root candidate18 = 324
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S023
S025 · calculation
操作前
Euler square root candidate19 := mul(19, 19)
操作後
Euler square root candidate19 = 361
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S024
S026 · calculation
操作前
Euler square root candidate20 := mul(20, 20)
操作後
Euler square root candidate20 = 400
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S025
S027 · calculation
操作前
Euler square root candidate21 := mul(21, 21)
操作後
Euler square root candidate21 = 441
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S026
S028 · calculation
操作前
Euler square root candidate22 := mul(22, 22)
操作後
Euler square root candidate22 = 484
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S027
S029 · calculation
操作前
Euler square root candidate23 := mul(23, 23)
操作後
Euler square root candidate23 = 529
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S028
S030 · calculation
操作前
Euler square root candidate24 := mul(24, 24)
操作後
Euler square root candidate24 = 576
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S029
S031 · calculation
操作前
Euler square root candidate25 := mul(25, 25)
操作後
Euler square root candidate25 = 625
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S030
S032 · calculation
操作前
Euler square root candidate26 := mul(26, 26)
操作後
Euler square root candidate26 = 676
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S031
S033 · calculation
操作前
Euler square root candidate27 := mul(27, 27)
操作後
Euler square root candidate27 = 729
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S032
S034 · calculation
操作前
Euler square root candidate28 := mul(28, 28)
操作後
Euler square root candidate28 = 784
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S033
S035 · calculation
操作前
Euler square root candidate29 := mul(29, 29)
操作後
Euler square root candidate29 = 841
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S034
S036 · calculation
操作前
Euler square root candidate30 := mul(30, 30)
操作後
Euler square root candidate30 = 900
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S035
S037 · implies
操作前
source roles = [31, 10]
操作後
derived = [[[1, 1], [2, 4], [3, 9], [4, 16], [5, 25], [6, 5], [7, 18], [8, 2], [9, 19], [10, 7], [11, 28], [12, 20], [13, 14], [14, 10], [15, 8], [16, 8], [17, 10], [18, 14], [19, 20], [20, 28], [21, 7], [22, 19], [23, 2], [24, 18], [25, 5], [26, 25], [27, 16], [28, 9], [29, 4], [30, 1]], [14, 17], 1]
條件:無
全部1至p−1逐平方列舉,根存在為+1、全無為−1;此路徑沒有用Euler判準算Legendre。
步驟識別與依賴
規則:Euler_ALL_nonzero_square_table_defines_Legendre · 依賴:G001, S036
S038 · calculation
操作前
Euler binary power accumulate0 := mul(1, 10)
操作後
Euler binary power accumulate0 = 10
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S037
S039 · calculation
操作前
Euler binary power square0 := mul(10, 10)
操作後
Euler binary power square0 = 100
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S038
S040 · implies
操作前
source roles = [0, [1, 10, 15], 31, 10, 15]
操作後
derived = [10, 100, 10, 7, 7]
條件:無
每步保acc*base^remaining同餘原a^((p−1)/2);奇數先乘,平方底數、整除指數,直到0。與全部square表是不同計算。
步驟識別與依賴
規則:Euler_repeated_squaring_original_exponent_invariant · 依賴:G001, S039
S041 · calculation
操作前
Euler binary power accumulate1 := mul(10, 7)
操作後
Euler binary power accumulate1 = 70
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S040
S042 · calculation
操作前
Euler binary power square1 := mul(7, 7)
操作後
Euler binary power square1 = 49
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S041
S043 · implies
操作前
source roles = [1, [10, 7, 7], 31, 10, 15]
操作後
derived = [70, 49, 8, 18, 3]
條件:無
每步保acc*base^remaining同餘原a^((p−1)/2);奇數先乘,平方底數、整除指數,直到0。與全部square表是不同計算。
步驟識別與依賴
規則:Euler_repeated_squaring_original_exponent_invariant · 依賴:G001, S042
S044 · calculation
操作前
Euler binary power accumulate2 := mul(8, 18)
操作後
Euler binary power accumulate2 = 144
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S043
S045 · calculation
操作前
Euler binary power square2 := mul(18, 18)
操作後
Euler binary power square2 = 324
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S044
S046 · implies
操作前
source roles = [2, [8, 18, 3], 31, 10, 15]
操作後
derived = [144, 324, 20, 14, 1]
條件:無
每步保acc*base^remaining同餘原a^((p−1)/2);奇數先乘,平方底數、整除指數,直到0。與全部square表是不同計算。
步驟識別與依賴
規則:Euler_repeated_squaring_original_exponent_invariant · 依賴:G001, S045
S047 · calculation
操作前
Euler binary power accumulate3 := mul(20, 14)
操作後
Euler binary power accumulate3 = 280
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S046
S048 · calculation
操作前
Euler binary power square3 := mul(14, 14)
操作後
Euler binary power square3 = 196
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S047
S049 · implies
操作前
source roles = [3, [20, 14, 1], 31, 10, 15]
操作後
derived = [280, 196, 1, 10, 0]
條件:無
每步保acc*base^remaining同餘原a^((p−1)/2);奇數先乘,平方底數、整除指數,直到0。與全部square表是不同計算。
步驟識別與依賴
規則:Euler_repeated_squaring_original_exponent_invariant · 依賴:G001, S048
S050 · implies
操作前
source roles = [31, [14, 17], 1, 1]
操作後
derived = [1, 是, one finite instance is not a general theorem proof]
條件:無
p−1是模p的−1代表,不是整數p−1等於−1。指定instance兩個獨立算法吻合,不把這一表當一般定理的證明。
步驟識別與依賴
規則:Euler_decode_p_minus1_and_instance_only_comparison · 依賴:G001, S049