R0047-24193 · q-20261015-advance-20261113-r04-euler-criterion-quadratic-residue-0068
逐步推導
S001 · implies
操作前
source roles = [eulercrit-residue-nonresidue-cases]
操作後
derived = [[prime, normalized_class, classification, nonzero_roots, Legendre_symbol, signed_power, equal, certificate]]
條件:無
本頁列完整來源欄序,不需JavaScript;gradient boundary依原mode選6/8/7欄,不補欄也不由答案猜mode。
步驟識別與依賴
規則:source_ordered_fields_without_JS · 依賴:G001
S002 · implies
操作前
source roles = [67]
操作後
derived = [[[2, 1], [3, 1], [4, 3], [5, 2], [6, 1], [7, 4], [8, 3]], 是]
條件:無
合數必有不大於平方根的因數,故完整試除驗模數資格;這不由平方性或Euler等式猜測。
步驟識別與依賴
規則:Euler_modulus_primality_complete_trial · 依賴:G001, S001
S003 · calculation
操作前
Euler ORIGINAL signed quotient times modulus := mul(0, 67)
操作後
Euler ORIGINAL signed quotient times modulus = 0
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S002
S004 · calculation
操作前
Euler ORIGINAL signed a minus modulus multiple := sub(2, 0)
操作後
Euler ORIGINAL signed a minus modulus multiple = 2
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S003
S005 · implies
操作前
source roles = [2, 67, 0]
操作後
derived = [2, 是]
條件:無
a=qp+r、0<=r<p保負a同一類;原a在指定欄位保留。
步驟識別與依賴
規則:Euler_Euclidean_class_before_hypothesis · 依賴:G001, S004
S006 · implies
操作前
source roles = [67, 2, 2]
操作後
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 · calculation
操作前
Euler square root candidate53 := mul(53, 53)
操作後
Euler square root candidate53 = 2809
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S058
S060 · calculation
操作前
Euler square root candidate54 := mul(54, 54)
操作後
Euler square root candidate54 = 2916
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S059
S061 · calculation
操作前
Euler square root candidate55 := mul(55, 55)
操作後
Euler square root candidate55 = 3025
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S060
S062 · calculation
操作前
Euler square root candidate56 := mul(56, 56)
操作後
Euler square root candidate56 = 3136
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S061
S063 · calculation
操作前
Euler square root candidate57 := mul(57, 57)
操作後
Euler square root candidate57 = 3249
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S062
S064 · calculation
操作前
Euler square root candidate58 := mul(58, 58)
操作後
Euler square root candidate58 = 3364
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S063
S065 · calculation
操作前
Euler square root candidate59 := mul(59, 59)
操作後
Euler square root candidate59 = 3481
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S064
S066 · calculation
操作前
Euler square root candidate60 := mul(60, 60)
操作後
Euler square root candidate60 = 3600
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S065
S067 · calculation
操作前
Euler square root candidate61 := mul(61, 61)
操作後
Euler square root candidate61 = 3721
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S066
S068 · calculation
操作前
Euler square root candidate62 := mul(62, 62)
操作後
Euler square root candidate62 = 3844
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S067
S069 · calculation
操作前
Euler square root candidate63 := mul(63, 63)
操作後
Euler square root candidate63 = 3969
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S068
S070 · calculation
操作前
Euler square root candidate64 := mul(64, 64)
操作後
Euler square root candidate64 = 4096
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S069
S071 · calculation
操作前
Euler square root candidate65 := mul(65, 65)
操作後
Euler square root candidate65 = 4225
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S070
S072 · calculation
操作前
Euler square root candidate66 := mul(66, 66)
操作後
Euler square root candidate66 = 4356
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S071
S073 · implies
操作前
source roles = [67, 2]
操作後
derived = [[[1, 1], [2, 4], [3, 9], [4, 16], [5, 25], [6, 36], [7, 49], [8, 64], [9, 14], [10, 33], [11, 54], [12, 10], [13, 35], [14, 62], [15, 24], [16, 55], [17, 21], [18, 56], [19, 26], [20, 65], [21, 39], [22, 15], [23, 60], [24, 40], [25, 22], [26, 6], [27, 59], [28, 47], [29, 37], [30, 29], [31, 23], [32, 19], [33, 17], [34, 17], [35, 19], [36, 23], [37, 29], [38, 37], [39, 47], [40, 59], [41, 6], [42, 22], [43, 40], [44, 60], [45, 15], [46, 39], [47, 65], [48, 26], [49, 56], [50, 21], [51, 55], [52, 24], [53, 62], [54, 35], [55, 10], [56, 54], [57, 33], [58, 14], [59, 64], [60, 49], [61, 36], [62, 25], [63, 16], [64, 9], [65, 4], [66, 1]], [], -1]
條件:無
全部1至p−1逐平方列舉,根存在為+1、全無為−1;此路徑沒有用Euler判準算Legendre。
步驟識別與依賴
規則:Euler_ALL_nonzero_square_table_defines_Legendre · 依賴:G001, S072
S074 · calculation
操作前
Euler binary power accumulate0 := mul(1, 2)
操作後
Euler binary power accumulate0 = 2
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S073
S075 · calculation
操作前
Euler binary power square0 := mul(2, 2)
操作後
Euler binary power square0 = 4
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S074
S076 · implies
操作前
source roles = [0, [1, 2, 33], 67, 2, 33]
操作後
derived = [2, 4, 2, 4, 16]
條件:無
每步保acc*base^remaining同餘原a^((p−1)/2);奇數先乘,平方底數、整除指數,直到0。與全部square表是不同計算。
步驟識別與依賴
規則:Euler_repeated_squaring_original_exponent_invariant · 依賴:G001, S075
S077 · calculation
操作前
Euler binary power square1 := mul(4, 4)
操作後
Euler binary power square1 = 16
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S076
S078 · implies
操作前
source roles = [1, [2, 4, 16], 67, 2, 33]
操作後
derived = [null, 16, 2, 16, 8]
條件:無
每步保acc*base^remaining同餘原a^((p−1)/2);奇數先乘,平方底數、整除指數,直到0。與全部square表是不同計算。
步驟識別與依賴
規則:Euler_repeated_squaring_original_exponent_invariant · 依賴:G001, S077
S079 · calculation
操作前
Euler binary power square2 := mul(16, 16)
操作後
Euler binary power square2 = 256
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S078
S080 · implies
操作前
source roles = [2, [2, 16, 8], 67, 2, 33]
操作後
derived = [null, 256, 2, 55, 4]
條件:無
每步保acc*base^remaining同餘原a^((p−1)/2);奇數先乘,平方底數、整除指數,直到0。與全部square表是不同計算。
步驟識別與依賴
規則:Euler_repeated_squaring_original_exponent_invariant · 依賴:G001, S079
S081 · calculation
操作前
Euler binary power square3 := mul(55, 55)
操作後
Euler binary power square3 = 3025
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S080
S082 · implies
操作前
source roles = [3, [2, 55, 4], 67, 2, 33]
操作後
derived = [null, 3025, 2, 10, 2]
條件:無
每步保acc*base^remaining同餘原a^((p−1)/2);奇數先乘,平方底數、整除指數,直到0。與全部square表是不同計算。
步驟識別與依賴
規則:Euler_repeated_squaring_original_exponent_invariant · 依賴:G001, S081
S083 · calculation
操作前
Euler binary power square4 := mul(10, 10)
操作後
Euler binary power square4 = 100
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S082
S084 · implies
操作前
source roles = [4, [2, 10, 2], 67, 2, 33]
操作後
derived = [null, 100, 2, 33, 1]
條件:無
每步保acc*base^remaining同餘原a^((p−1)/2);奇數先乘,平方底數、整除指數,直到0。與全部square表是不同計算。
步驟識別與依賴
規則:Euler_repeated_squaring_original_exponent_invariant · 依賴:G001, S083
S085 · calculation
操作前
Euler binary power accumulate5 := mul(2, 33)
操作後
Euler binary power accumulate5 = 66
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S084
S086 · calculation
操作前
Euler binary power square5 := mul(33, 33)
操作後
Euler binary power square5 = 1089
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S085
S087 · implies
操作前
source roles = [5, [2, 33, 1], 67, 2, 33]
操作後
derived = [66, 1089, 66, 17, 0]
條件:無
每步保acc*base^remaining同餘原a^((p−1)/2);奇數先乘,平方底數、整除指數,直到0。與全部square表是不同計算。
步驟識別與依賴
規則:Euler_repeated_squaring_original_exponent_invariant · 依賴:G001, S086
S088 · implies
操作前
source roles = [67, [], -1, 66]
操作後
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, S087