R0047-24140 · q-20261015-advance-20261113-r04-euler-criterion-quadratic-residue-0015
逐步推導
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 = [53]
操作後
derived = [[[2, 1], [3, 2], [4, 1], [5, 3], [6, 5], [7, 4]], 是]
條件:無
合數必有不大於平方根的因數,故完整試除驗模數資格;這不由平方性或Euler等式猜測。
步驟識別與依賴
規則:Euler_modulus_primality_complete_trial · 依賴:G001, S001
S003 · calculation
操作前
Euler ORIGINAL signed quotient times modulus := mul(0, 53)
操作後
Euler ORIGINAL signed quotient times modulus = 0
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S002
S004 · calculation
操作前
Euler ORIGINAL signed a minus modulus multiple := sub(15, 0)
操作後
Euler ORIGINAL signed a minus modulus multiple = 15
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S003
S005 · implies
操作前
source roles = [15, 53, 0]
操作後
derived = [15, 是]
條件:無
a=qp+r、0<=r<p保負a同一類;原a在指定欄位保留。
步驟識別與依賴
規則:Euler_Euclidean_class_before_hypothesis · 依賴:G001, S004
S006 · implies
操作前
source roles = [53, 15, 15]
操作後
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 · calculation
操作前
Euler square root candidate31 := mul(31, 31)
操作後
Euler square root candidate31 = 961
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S036
S038 · calculation
操作前
Euler square root candidate32 := mul(32, 32)
操作後
Euler square root candidate32 = 1024
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S037
S039 · calculation
操作前
Euler square root candidate33 := mul(33, 33)
操作後
Euler square root candidate33 = 1089
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S038
S040 · calculation
操作前
Euler square root candidate34 := mul(34, 34)
操作後
Euler square root candidate34 = 1156
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S039
S041 · calculation
操作前
Euler square root candidate35 := mul(35, 35)
操作後
Euler square root candidate35 = 1225
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S040
S042 · calculation
操作前
Euler square root candidate36 := mul(36, 36)
操作後
Euler square root candidate36 = 1296
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S041
S043 · calculation
操作前
Euler square root candidate37 := mul(37, 37)
操作後
Euler square root candidate37 = 1369
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S042
S044 · calculation
操作前
Euler square root candidate38 := mul(38, 38)
操作後
Euler square root candidate38 = 1444
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S043
S045 · calculation
操作前
Euler square root candidate39 := mul(39, 39)
操作後
Euler square root candidate39 = 1521
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S044
S046 · calculation
操作前
Euler square root candidate40 := mul(40, 40)
操作後
Euler square root candidate40 = 1600
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S045
S047 · calculation
操作前
Euler square root candidate41 := mul(41, 41)
操作後
Euler square root candidate41 = 1681
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S046
S048 · calculation
操作前
Euler square root candidate42 := mul(42, 42)
操作後
Euler square root candidate42 = 1764
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S047
S049 · calculation
操作前
Euler square root candidate43 := mul(43, 43)
操作後
Euler square root candidate43 = 1849
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S048
S050 · calculation
操作前
Euler square root candidate44 := mul(44, 44)
操作後
Euler square root candidate44 = 1936
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S049
S051 · calculation
操作前
Euler square root candidate45 := mul(45, 45)
操作後
Euler square root candidate45 = 2025
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S050
S052 · calculation
操作前
Euler square root candidate46 := mul(46, 46)
操作後
Euler square root candidate46 = 2116
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S051
S053 · calculation
操作前
Euler square root candidate47 := mul(47, 47)
操作後
Euler square root candidate47 = 2209
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S052
S054 · calculation
操作前
Euler square root candidate48 := mul(48, 48)
操作後
Euler square root candidate48 = 2304
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S053
S055 · calculation
操作前
Euler square root candidate49 := mul(49, 49)
操作後
Euler square root candidate49 = 2401
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S054
S056 · calculation
操作前
Euler square root candidate50 := mul(50, 50)
操作後
Euler square root candidate50 = 2500
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S055
S057 · calculation
操作前
Euler square root candidate51 := mul(51, 51)
操作後
Euler square root candidate51 = 2601
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S056
S058 · calculation
操作前
Euler square root candidate52 := mul(52, 52)
操作後
Euler square root candidate52 = 2704
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S057
S059 · implies
操作前
source roles = [53, 15]
操作後
derived = [[[1, 1], [2, 4], [3, 9], [4, 16], [5, 25], [6, 36], [7, 49], [8, 11], [9, 28], [10, 47], [11, 15], [12, 38], [13, 10], [14, 37], [15, 13], [16, 44], [17, 24], [18, 6], [19, 43], [20, 29], [21, 17], [22, 7], [23, 52], [24, 46], [25, 42], [26, 40], [27, 40], [28, 42], [29, 46], [30, 52], [31, 7], [32, 17], [33, 29], [34, 43], [35, 6], [36, 24], [37, 44], [38, 13], [39, 37], [40, 10], [41, 38], [42, 15], [43, 47], [44, 28], [45, 11], [46, 49], [47, 36], [48, 25], [49, 16], [50, 9], [51, 4], [52, 1]], [11, 42], 1]
條件:無
全部1至p−1逐平方列舉,根存在為+1、全無為−1;此路徑沒有用Euler判準算Legendre。
步驟識別與依賴
規則:Euler_ALL_nonzero_square_table_defines_Legendre · 依賴:G001, S058
S060 · calculation
操作前
Euler binary power square0 := mul(15, 15)
操作後
Euler binary power square0 = 225
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S059
S061 · implies
操作前
source roles = [0, [1, 15, 26], 53, 15, 26]
操作後
derived = [null, 225, 1, 13, 13]
條件:無
每步保acc*base^remaining同餘原a^((p−1)/2);奇數先乘,平方底數、整除指數,直到0。與全部square表是不同計算。
步驟識別與依賴
規則:Euler_repeated_squaring_original_exponent_invariant · 依賴:G001, S060
S062 · calculation
操作前
Euler binary power accumulate1 := mul(1, 13)
操作後
Euler binary power accumulate1 = 13
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S061
S063 · calculation
操作前
Euler binary power square1 := mul(13, 13)
操作後
Euler binary power square1 = 169
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S062
S064 · implies
操作前
source roles = [1, [1, 13, 13], 53, 15, 26]
操作後
derived = [13, 169, 13, 10, 6]
條件:無
每步保acc*base^remaining同餘原a^((p−1)/2);奇數先乘,平方底數、整除指數,直到0。與全部square表是不同計算。
步驟識別與依賴
規則:Euler_repeated_squaring_original_exponent_invariant · 依賴:G001, S063
S065 · calculation
操作前
Euler binary power square2 := mul(10, 10)
操作後
Euler binary power square2 = 100
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S064
S066 · implies
操作前
source roles = [2, [13, 10, 6], 53, 15, 26]
操作後
derived = [null, 100, 13, 47, 3]
條件:無
每步保acc*base^remaining同餘原a^((p−1)/2);奇數先乘,平方底數、整除指數,直到0。與全部square表是不同計算。
步驟識別與依賴
規則:Euler_repeated_squaring_original_exponent_invariant · 依賴:G001, S065
S067 · calculation
操作前
Euler binary power accumulate3 := mul(13, 47)
操作後
Euler binary power accumulate3 = 611
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S066
S068 · calculation
操作前
Euler binary power square3 := mul(47, 47)
操作後
Euler binary power square3 = 2209
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S067
S069 · implies
操作前
source roles = [3, [13, 47, 3], 53, 15, 26]
操作後
derived = [611, 2209, 28, 36, 1]
條件:無
每步保acc*base^remaining同餘原a^((p−1)/2);奇數先乘,平方底數、整除指數,直到0。與全部square表是不同計算。
步驟識別與依賴
規則:Euler_repeated_squaring_original_exponent_invariant · 依賴:G001, S068
S070 · calculation
操作前
Euler binary power accumulate4 := mul(28, 36)
操作後
Euler binary power accumulate4 = 1008
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S069
S071 · calculation
操作前
Euler binary power square4 := mul(36, 36)
操作後
Euler binary power square4 = 1296
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S070
S072 · implies
操作前
source roles = [4, [28, 36, 1], 53, 15, 26]
操作後
derived = [1008, 1296, 1, 24, 0]
條件:無
每步保acc*base^remaining同餘原a^((p−1)/2);奇數先乘,平方底數、整除指數,直到0。與全部square表是不同計算。
步驟識別與依賴
規則:Euler_repeated_squaring_original_exponent_invariant · 依賴:G001, S071
S073 · implies
操作前
source roles = [53, [11, 42], 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, S072