# 第 23785 題：Legendre符號

[返回所在分頁 119](https://ocme.evemisslab.com/zh-Hant/questions/page/119/)

[← 逐題詳解目錄](https://ocme.evemisslab.com/zh-Hant/questions/) · [原題批次](https://ocme.evemisslab.com/zh-Hant/practice/batch-20261014-advance-20261112-r06-legendre-symbol-foundations/#q-20261014-advance-20261112-r06-legendre-symbol-0060)

本頁是已完成第二對話 AI 數理與中英語義覆核的教學詳解，只支持本題明示的模型與前提。沒有人工審查或新 Lean 證明，也不提升原題或 MKO 的 Canonical 真值狀態。

R0046-23785 · q-20261014-advance-20261112-r06-legendre-symbol-0060



## 原題與已知條件

odd prime上的zero/residue/nonresidue三值完整分類。操作=legendre-zero-class；資料={"prime":31,"a":310}。請依 exact_ordered_tuple_declared_by_interface 欄序回答。


- G001 — odd prime上的zero/residue/nonresidue三值完整分類。操作=legendre-zero-class；資料={"prime":31,"a":310}。請依 exact_ordered_tuple_declared_by_interface 欄序回答。





## 定義與適用範圍

沿用原題明示的論域、假設與來源 MKO 定義。本題已完成第二對話數理與中英語義覆核，並由原始參數逐題獨立重算模型、答案與每個算術步驟；原題仍為 candidate。


- [mko-legendre-symbol](https://ocme.evemisslab.com/zh-Hant/mko/mko-legendre-symbol/)





## 逐步推導

S001 · implies操作前

source operation=legendre-zero-class;original snapshot and mathematics retained

操作後

explicit ordered source output fields=[prime, a, normalized_class, Legendre_symbol, nonzero_roots, certificate]

條件：無

保留原題介面快照，本頁直接列來源欄序，不需JavaScript。radius由原mode選6／11欄，不補欄；No與實際否定依來源責任分清。

步驟識別與依賴規則：source_ordered_interface_explicit_without_javascript · 依賴：G001





S002 · implies操作前

Legendre ORIGINAL odd prime:ORIGINAL modulus=31;ALL possible trial divisors through square root=[2, 3, 4, 5]

操作後

ALL [divisor,remainder] rows=[[2, 1], [3, 1], [4, 3], [5, 1]];prime=是

條件：無

先完整核prime資格，不用Legendre或Euler分類反過來猜prime；這是modulus前提，不是a的平方性。

步驟識別與依賴規則：legendre_complete_prime_trial_not_Euler_classification · 依賴：G001, S001





S003 · calculation操作前

Legendre ORIGINAL nonzero root1 exact square := mul(1, 1)

操作後

Legendre ORIGINAL nonzero root1 exact square = 1

條件：無

依原始角色與已證中間量精確代值，不用浮點近似，也不把有限測試冒充全稱極限。

步驟識別與依賴規則：exact_rational_arithmetic · 依賴：G001, S002





S004 · implies操作前

ORIGINAL root x=1 in1..30;exact square=1

操作後

square=0*31+1;canonical square class=1;ALL root indices retained

條件：無

每個非零root均列入，不能由少量平方樣本宣稱另一類無root；不預用Euler criterion。

步驟識別與依賴規則：legendre_ALL_nonzero_square_rows_before_symbol_definition · 依賴：G001, S003





S005 · calculation操作前

Legendre ORIGINAL nonzero root2 exact square := mul(2, 2)

操作後

Legendre ORIGINAL nonzero root2 exact square = 4

條件：無

依原始角色與已證中間量精確代值，不用浮點近似，也不把有限測試冒充全稱極限。

步驟識別與依賴規則：exact_rational_arithmetic · 依賴：G001, S004





S006 · implies操作前

ORIGINAL root x=2 in1..30;exact square=4

操作後

square=0*31+4;canonical square class=4;ALL root indices retained

條件：無

每個非零root均列入，不能由少量平方樣本宣稱另一類無root；不預用Euler criterion。

步驟識別與依賴規則：legendre_ALL_nonzero_square_rows_before_symbol_definition · 依賴：G001, S005





S007 · calculation操作前

Legendre ORIGINAL nonzero root3 exact square := mul(3, 3)

操作後

Legendre ORIGINAL nonzero root3 exact square = 9

條件：無

依原始角色與已證中間量精確代值，不用浮點近似，也不把有限測試冒充全稱極限。

步驟識別與依賴規則：exact_rational_arithmetic · 依賴：G001, S006





S008 · implies操作前

ORIGINAL root x=3 in1..30;exact square=9

操作後

square=0*31+9;canonical square class=9;ALL root indices retained

條件：無

每個非零root均列入，不能由少量平方樣本宣稱另一類無root；不預用Euler criterion。

步驟識別與依賴規則：legendre_ALL_nonzero_square_rows_before_symbol_definition · 依賴：G001, S007





S009 · calculation操作前

Legendre ORIGINAL nonzero root4 exact square := mul(4, 4)

操作後

Legendre ORIGINAL nonzero root4 exact square = 16

條件：無

依原始角色與已證中間量精確代值，不用浮點近似，也不把有限測試冒充全稱極限。

步驟識別與依賴規則：exact_rational_arithmetic · 依賴：G001, S008





S010 · implies操作前

ORIGINAL root x=4 in1..30;exact square=16

操作後

square=0*31+16;canonical square class=16;ALL root indices retained

條件：無

每個非零root均列入，不能由少量平方樣本宣稱另一類無root；不預用Euler criterion。

步驟識別與依賴規則：legendre_ALL_nonzero_square_rows_before_symbol_definition · 依賴：G001, S009





S011 · calculation操作前

Legendre ORIGINAL nonzero root5 exact square := mul(5, 5)

操作後

Legendre ORIGINAL nonzero root5 exact square = 25

條件：無

依原始角色與已證中間量精確代值，不用浮點近似，也不把有限測試冒充全稱極限。

步驟識別與依賴規則：exact_rational_arithmetic · 依賴：G001, S010





S012 · implies操作前

ORIGINAL root x=5 in1..30;exact square=25

操作後

square=0*31+25;canonical square class=25;ALL root indices retained

條件：無

每個非零root均列入，不能由少量平方樣本宣稱另一類無root；不預用Euler criterion。

步驟識別與依賴規則：legendre_ALL_nonzero_square_rows_before_symbol_definition · 依賴：G001, S011





S013 · calculation操作前

Legendre ORIGINAL nonzero root6 exact square := mul(6, 6)

操作後

Legendre ORIGINAL nonzero root6 exact square = 36

條件：無

依原始角色與已證中間量精確代值，不用浮點近似，也不把有限測試冒充全稱極限。

步驟識別與依賴規則：exact_rational_arithmetic · 依賴：G001, S012





S014 · implies操作前

ORIGINAL root x=6 in1..30;exact square=36

操作後

square=1*31+5;canonical square class=5;ALL root indices retained

條件：無

每個非零root均列入，不能由少量平方樣本宣稱另一類無root；不預用Euler criterion。

步驟識別與依賴規則：legendre_ALL_nonzero_square_rows_before_symbol_definition · 依賴：G001, S013





S015 · calculation操作前

Legendre ORIGINAL nonzero root7 exact square := mul(7, 7)

操作後

Legendre ORIGINAL nonzero root7 exact square = 49

條件：無

依原始角色與已證中間量精確代值，不用浮點近似，也不把有限測試冒充全稱極限。

步驟識別與依賴規則：exact_rational_arithmetic · 依賴：G001, S014





S016 · implies操作前

ORIGINAL root x=7 in1..30;exact square=49

操作後

square=1*31+18;canonical square class=18;ALL root indices retained

條件：無

每個非零root均列入，不能由少量平方樣本宣稱另一類無root；不預用Euler criterion。

步驟識別與依賴規則：legendre_ALL_nonzero_square_rows_before_symbol_definition · 依賴：G001, S015





S017 · calculation操作前

Legendre ORIGINAL nonzero root8 exact square := mul(8, 8)

操作後

Legendre ORIGINAL nonzero root8 exact square = 64

條件：無

依原始角色與已證中間量精確代值，不用浮點近似，也不把有限測試冒充全稱極限。

步驟識別與依賴規則：exact_rational_arithmetic · 依賴：G001, S016





S018 · implies操作前

ORIGINAL root x=8 in1..30;exact square=64

操作後

square=2*31+2;canonical square class=2;ALL root indices retained

條件：無

每個非零root均列入，不能由少量平方樣本宣稱另一類無root；不預用Euler criterion。

步驟識別與依賴規則：legendre_ALL_nonzero_square_rows_before_symbol_definition · 依賴：G001, S017





S019 · calculation操作前

Legendre ORIGINAL nonzero root9 exact square := mul(9, 9)

操作後

Legendre ORIGINAL nonzero root9 exact square = 81

條件：無

依原始角色與已證中間量精確代值，不用浮點近似，也不把有限測試冒充全稱極限。

步驟識別與依賴規則：exact_rational_arithmetic · 依賴：G001, S018





S020 · implies操作前

ORIGINAL root x=9 in1..30;exact square=81

操作後

square=2*31+19;canonical square class=19;ALL root indices retained

條件：無

每個非零root均列入，不能由少量平方樣本宣稱另一類無root；不預用Euler criterion。

步驟識別與依賴規則：legendre_ALL_nonzero_square_rows_before_symbol_definition · 依賴：G001, S019





S021 · calculation操作前

Legendre ORIGINAL nonzero root10 exact square := mul(10, 10)

操作後

Legendre ORIGINAL nonzero root10 exact square = 100

條件：無

依原始角色與已證中間量精確代值，不用浮點近似，也不把有限測試冒充全稱極限。

步驟識別與依賴規則：exact_rational_arithmetic · 依賴：G001, S020





S022 · implies操作前

ORIGINAL root x=10 in1..30;exact square=100

操作後

square=3*31+7;canonical square class=7;ALL root indices retained

條件：無

每個非零root均列入，不能由少量平方樣本宣稱另一類無root；不預用Euler criterion。

步驟識別與依賴規則：legendre_ALL_nonzero_square_rows_before_symbol_definition · 依賴：G001, S021





S023 · calculation操作前

Legendre ORIGINAL nonzero root11 exact square := mul(11, 11)

操作後

Legendre ORIGINAL nonzero root11 exact square = 121

條件：無

依原始角色與已證中間量精確代值，不用浮點近似，也不把有限測試冒充全稱極限。

步驟識別與依賴規則：exact_rational_arithmetic · 依賴：G001, S022





S024 · implies操作前

ORIGINAL root x=11 in1..30;exact square=121

操作後

square=3*31+28;canonical square class=28;ALL root indices retained

條件：無

每個非零root均列入，不能由少量平方樣本宣稱另一類無root；不預用Euler criterion。

步驟識別與依賴規則：legendre_ALL_nonzero_square_rows_before_symbol_definition · 依賴：G001, S023





S025 · calculation操作前

Legendre ORIGINAL nonzero root12 exact square := mul(12, 12)

操作後

Legendre ORIGINAL nonzero root12 exact square = 144

條件：無

依原始角色與已證中間量精確代值，不用浮點近似，也不把有限測試冒充全稱極限。

步驟識別與依賴規則：exact_rational_arithmetic · 依賴：G001, S024





S026 · implies操作前

ORIGINAL root x=12 in1..30;exact square=144

操作後

square=4*31+20;canonical square class=20;ALL root indices retained

條件：無

每個非零root均列入，不能由少量平方樣本宣稱另一類無root；不預用Euler criterion。

步驟識別與依賴規則：legendre_ALL_nonzero_square_rows_before_symbol_definition · 依賴：G001, S025





S027 · calculation操作前

Legendre ORIGINAL nonzero root13 exact square := mul(13, 13)

操作後

Legendre ORIGINAL nonzero root13 exact square = 169

條件：無

依原始角色與已證中間量精確代值，不用浮點近似，也不把有限測試冒充全稱極限。

步驟識別與依賴規則：exact_rational_arithmetic · 依賴：G001, S026





S028 · implies操作前

ORIGINAL root x=13 in1..30;exact square=169

操作後

square=5*31+14;canonical square class=14;ALL root indices retained

條件：無

每個非零root均列入，不能由少量平方樣本宣稱另一類無root；不預用Euler criterion。

步驟識別與依賴規則：legendre_ALL_nonzero_square_rows_before_symbol_definition · 依賴：G001, S027





S029 · calculation操作前

Legendre ORIGINAL nonzero root14 exact square := mul(14, 14)

操作後

Legendre ORIGINAL nonzero root14 exact square = 196

條件：無

依原始角色與已證中間量精確代值，不用浮點近似，也不把有限測試冒充全稱極限。

步驟識別與依賴規則：exact_rational_arithmetic · 依賴：G001, S028





S030 · implies操作前

ORIGINAL root x=14 in1..30;exact square=196

操作後

square=6*31+10;canonical square class=10;ALL root indices retained

條件：無

每個非零root均列入，不能由少量平方樣本宣稱另一類無root；不預用Euler criterion。

步驟識別與依賴規則：legendre_ALL_nonzero_square_rows_before_symbol_definition · 依賴：G001, S029





S031 · calculation操作前

Legendre ORIGINAL nonzero root15 exact square := mul(15, 15)

操作後

Legendre ORIGINAL nonzero root15 exact square = 225

條件：無

依原始角色與已證中間量精確代值，不用浮點近似，也不把有限測試冒充全稱極限。

步驟識別與依賴規則：exact_rational_arithmetic · 依賴：G001, S030





S032 · implies操作前

ORIGINAL root x=15 in1..30;exact square=225

操作後

square=7*31+8;canonical square class=8;ALL root indices retained

條件：無

每個非零root均列入，不能由少量平方樣本宣稱另一類無root；不預用Euler criterion。

步驟識別與依賴規則：legendre_ALL_nonzero_square_rows_before_symbol_definition · 依賴：G001, S031





S033 · calculation操作前

Legendre ORIGINAL nonzero root16 exact square := mul(16, 16)

操作後

Legendre ORIGINAL nonzero root16 exact square = 256

條件：無

依原始角色與已證中間量精確代值，不用浮點近似，也不把有限測試冒充全稱極限。

步驟識別與依賴規則：exact_rational_arithmetic · 依賴：G001, S032





S034 · implies操作前

ORIGINAL root x=16 in1..30;exact square=256

操作後

square=8*31+8;canonical square class=8;ALL root indices retained

條件：無

每個非零root均列入，不能由少量平方樣本宣稱另一類無root；不預用Euler criterion。

步驟識別與依賴規則：legendre_ALL_nonzero_square_rows_before_symbol_definition · 依賴：G001, S033





S035 · calculation操作前

Legendre ORIGINAL nonzero root17 exact square := mul(17, 17)

操作後

Legendre ORIGINAL nonzero root17 exact square = 289

條件：無

依原始角色與已證中間量精確代值，不用浮點近似，也不把有限測試冒充全稱極限。

步驟識別與依賴規則：exact_rational_arithmetic · 依賴：G001, S034





S036 · implies操作前

ORIGINAL root x=17 in1..30;exact square=289

操作後

square=9*31+10;canonical square class=10;ALL root indices retained

條件：無

每個非零root均列入，不能由少量平方樣本宣稱另一類無root；不預用Euler criterion。

步驟識別與依賴規則：legendre_ALL_nonzero_square_rows_before_symbol_definition · 依賴：G001, S035





S037 · calculation操作前

Legendre ORIGINAL nonzero root18 exact square := mul(18, 18)

操作後

Legendre ORIGINAL nonzero root18 exact square = 324

條件：無

依原始角色與已證中間量精確代值，不用浮點近似，也不把有限測試冒充全稱極限。

步驟識別與依賴規則：exact_rational_arithmetic · 依賴：G001, S036





S038 · implies操作前

ORIGINAL root x=18 in1..30;exact square=324

操作後

square=10*31+14;canonical square class=14;ALL root indices retained

條件：無

每個非零root均列入，不能由少量平方樣本宣稱另一類無root；不預用Euler criterion。

步驟識別與依賴規則：legendre_ALL_nonzero_square_rows_before_symbol_definition · 依賴：G001, S037





S039 · calculation操作前

Legendre ORIGINAL nonzero root19 exact square := mul(19, 19)

操作後

Legendre ORIGINAL nonzero root19 exact square = 361

條件：無

依原始角色與已證中間量精確代值，不用浮點近似，也不把有限測試冒充全稱極限。

步驟識別與依賴規則：exact_rational_arithmetic · 依賴：G001, S038





S040 · implies操作前

ORIGINAL root x=19 in1..30;exact square=361

操作後

square=11*31+20;canonical square class=20;ALL root indices retained

條件：無

每個非零root均列入，不能由少量平方樣本宣稱另一類無root；不預用Euler criterion。

步驟識別與依賴規則：legendre_ALL_nonzero_square_rows_before_symbol_definition · 依賴：G001, S039





S041 · calculation操作前

Legendre ORIGINAL nonzero root20 exact square := mul(20, 20)

操作後

Legendre ORIGINAL nonzero root20 exact square = 400

條件：無

依原始角色與已證中間量精確代值，不用浮點近似，也不把有限測試冒充全稱極限。

步驟識別與依賴規則：exact_rational_arithmetic · 依賴：G001, S040





S042 · implies操作前

ORIGINAL root x=20 in1..30;exact square=400

操作後

square=12*31+28;canonical square class=28;ALL root indices retained

條件：無

每個非零root均列入，不能由少量平方樣本宣稱另一類無root；不預用Euler criterion。

步驟識別與依賴規則：legendre_ALL_nonzero_square_rows_before_symbol_definition · 依賴：G001, S041





S043 · calculation操作前

Legendre ORIGINAL nonzero root21 exact square := mul(21, 21)

操作後

Legendre ORIGINAL nonzero root21 exact square = 441

條件：無

依原始角色與已證中間量精確代值，不用浮點近似，也不把有限測試冒充全稱極限。

步驟識別與依賴規則：exact_rational_arithmetic · 依賴：G001, S042





S044 · implies操作前

ORIGINAL root x=21 in1..30;exact square=441

操作後

square=14*31+7;canonical square class=7;ALL root indices retained

條件：無

每個非零root均列入，不能由少量平方樣本宣稱另一類無root；不預用Euler criterion。

步驟識別與依賴規則：legendre_ALL_nonzero_square_rows_before_symbol_definition · 依賴：G001, S043





S045 · calculation操作前

Legendre ORIGINAL nonzero root22 exact square := mul(22, 22)

操作後

Legendre ORIGINAL nonzero root22 exact square = 484

條件：無

依原始角色與已證中間量精確代值，不用浮點近似，也不把有限測試冒充全稱極限。

步驟識別與依賴規則：exact_rational_arithmetic · 依賴：G001, S044





S046 · implies操作前

ORIGINAL root x=22 in1..30;exact square=484

操作後

square=15*31+19;canonical square class=19;ALL root indices retained

條件：無

每個非零root均列入，不能由少量平方樣本宣稱另一類無root；不預用Euler criterion。

步驟識別與依賴規則：legendre_ALL_nonzero_square_rows_before_symbol_definition · 依賴：G001, S045





S047 · calculation操作前

Legendre ORIGINAL nonzero root23 exact square := mul(23, 23)

操作後

Legendre ORIGINAL nonzero root23 exact square = 529

條件：無

依原始角色與已證中間量精確代值，不用浮點近似，也不把有限測試冒充全稱極限。

步驟識別與依賴規則：exact_rational_arithmetic · 依賴：G001, S046





S048 · implies操作前

ORIGINAL root x=23 in1..30;exact square=529

操作後

square=17*31+2;canonical square class=2;ALL root indices retained

條件：無

每個非零root均列入，不能由少量平方樣本宣稱另一類無root；不預用Euler criterion。

步驟識別與依賴規則：legendre_ALL_nonzero_square_rows_before_symbol_definition · 依賴：G001, S047





S049 · calculation操作前

Legendre ORIGINAL nonzero root24 exact square := mul(24, 24)

操作後

Legendre ORIGINAL nonzero root24 exact square = 576

條件：無

依原始角色與已證中間量精確代值，不用浮點近似，也不把有限測試冒充全稱極限。

步驟識別與依賴規則：exact_rational_arithmetic · 依賴：G001, S048





S050 · implies操作前

ORIGINAL root x=24 in1..30;exact square=576

操作後

square=18*31+18;canonical square class=18;ALL root indices retained

條件：無

每個非零root均列入，不能由少量平方樣本宣稱另一類無root；不預用Euler criterion。

步驟識別與依賴規則：legendre_ALL_nonzero_square_rows_before_symbol_definition · 依賴：G001, S049





S051 · calculation操作前

Legendre ORIGINAL nonzero root25 exact square := mul(25, 25)

操作後

Legendre ORIGINAL nonzero root25 exact square = 625

條件：無

依原始角色與已證中間量精確代值，不用浮點近似，也不把有限測試冒充全稱極限。

步驟識別與依賴規則：exact_rational_arithmetic · 依賴：G001, S050





S052 · implies操作前

ORIGINAL root x=25 in1..30;exact square=625

操作後

square=20*31+5;canonical square class=5;ALL root indices retained

條件：無

每個非零root均列入，不能由少量平方樣本宣稱另一類無root；不預用Euler criterion。

步驟識別與依賴規則：legendre_ALL_nonzero_square_rows_before_symbol_definition · 依賴：G001, S051





S053 · calculation操作前

Legendre ORIGINAL nonzero root26 exact square := mul(26, 26)

操作後

Legendre ORIGINAL nonzero root26 exact square = 676

條件：無

依原始角色與已證中間量精確代值，不用浮點近似，也不把有限測試冒充全稱極限。

步驟識別與依賴規則：exact_rational_arithmetic · 依賴：G001, S052





S054 · implies操作前

ORIGINAL root x=26 in1..30;exact square=676

操作後

square=21*31+25;canonical square class=25;ALL root indices retained

條件：無

每個非零root均列入，不能由少量平方樣本宣稱另一類無root；不預用Euler criterion。

步驟識別與依賴規則：legendre_ALL_nonzero_square_rows_before_symbol_definition · 依賴：G001, S053





S055 · calculation操作前

Legendre ORIGINAL nonzero root27 exact square := mul(27, 27)

操作後

Legendre ORIGINAL nonzero root27 exact square = 729

條件：無

依原始角色與已證中間量精確代值，不用浮點近似，也不把有限測試冒充全稱極限。

步驟識別與依賴規則：exact_rational_arithmetic · 依賴：G001, S054





S056 · implies操作前

ORIGINAL root x=27 in1..30;exact square=729

操作後

square=23*31+16;canonical square class=16;ALL root indices retained

條件：無

每個非零root均列入，不能由少量平方樣本宣稱另一類無root；不預用Euler criterion。

步驟識別與依賴規則：legendre_ALL_nonzero_square_rows_before_symbol_definition · 依賴：G001, S055





S057 · calculation操作前

Legendre ORIGINAL nonzero root28 exact square := mul(28, 28)

操作後

Legendre ORIGINAL nonzero root28 exact square = 784

條件：無

依原始角色與已證中間量精確代值，不用浮點近似，也不把有限測試冒充全稱極限。

步驟識別與依賴規則：exact_rational_arithmetic · 依賴：G001, S056





S058 · implies操作前

ORIGINAL root x=28 in1..30;exact square=784

操作後

square=25*31+9;canonical square class=9;ALL root indices retained

條件：無

每個非零root均列入，不能由少量平方樣本宣稱另一類無root；不預用Euler criterion。

步驟識別與依賴規則：legendre_ALL_nonzero_square_rows_before_symbol_definition · 依賴：G001, S057





S059 · calculation操作前

Legendre ORIGINAL nonzero root29 exact square := mul(29, 29)

操作後

Legendre ORIGINAL nonzero root29 exact square = 841

條件：無

依原始角色與已證中間量精確代值，不用浮點近似，也不把有限測試冒充全稱極限。

步驟識別與依賴規則：exact_rational_arithmetic · 依賴：G001, S058





S060 · implies操作前

ORIGINAL root x=29 in1..30;exact square=841

操作後

square=27*31+4;canonical square class=4;ALL root indices retained

條件：無

每個非零root均列入，不能由少量平方樣本宣稱另一類無root；不預用Euler criterion。

步驟識別與依賴規則：legendre_ALL_nonzero_square_rows_before_symbol_definition · 依賴：G001, S059





S061 · calculation操作前

Legendre ORIGINAL nonzero root30 exact square := mul(30, 30)

操作後

Legendre ORIGINAL nonzero root30 exact square = 900

條件：無

依原始角色與已證中間量精確代值，不用浮點近似，也不把有限測試冒充全稱極限。

步驟識別與依賴規則：exact_rational_arithmetic · 依賴：G001, S060





S062 · implies操作前

ORIGINAL root x=30 in1..30;exact square=900

操作後

square=29*31+1;canonical square class=1;ALL root indices retained

條件：無

每個非零root均列入，不能由少量平方樣本宣稱另一類無root；不預用Euler criterion。

步驟識別與依賴規則：legendre_ALL_nonzero_square_rows_before_symbol_definition · 依賴：G001, S061





S063 · implies操作前

ORIGINAL prime=31;COMPLETE nonzero square table=[[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]];nonzero square classes=[1, 2, 4, 5, 7, 8, 9, 10, 14, 16, 18, 19, 20, 25, 28]

操作後

for EACH normalized class r,first r0 ->symbol0;else square-table member ->symbol1;otherwise ->symbol-1;these cases partition ALL0..p-1

條件：無

先分離zero類，不能因0也是平方便給+1；非零類再依完整square table分residue／nonresidue。這是定義與完整見證，不靠後續乘法性或Euler公式。

步驟識別與依賴規則：legendre_ZERO_then_residue_nonresidue_three_way_definition · 依賴：G001, S062





S064 · calculation操作前

Legendre ORIGINAL candidate class quotient times modulus := mul(10, 31)

操作後

Legendre ORIGINAL candidate class quotient times modulus = 310

條件：無

依原始角色與已證中間量精確代值，不用浮點近似，也不把有限測試冒充全稱極限。

步驟識別與依賴規則：exact_rational_arithmetic · 依賴：G001, S063





S065 · calculation操作前

Legendre ORIGINAL candidate class ORIGINAL signed value minus multiple := sub(310, 310)

操作後

Legendre ORIGINAL candidate class ORIGINAL signed value minus multiple = 0

條件：無

依原始角色與已證中間量精確代值，不用浮點近似，也不把有限測試冒充全稱極限。

步驟識別與依賴規則：exact_rational_arithmetic · 依賴：G001, S064





S066 · implies操作前

Legendre ORIGINAL candidate class:ORIGINAL a=310,positive modulus=31;actual quotient=10

操作後

normalized class=0;a=quotient*modulus+class;ORIGINAL a retained in output where declared

條件：無

負a亦保同一congruence class，以0到p−1表示；不把負餘數直接當標準類。

步驟識別與依賴規則：legendre_ORIGINAL_signed_class_Euclidean_normalization · 依賴：G001, S065









## 逐步反向核對


- S066 · premise_and_result_audit — 回到原始資料與本步條件核對，不把單向推論誤稱等價。
- S065 · premise_and_result_audit — 以精確有理數重算 Legendre ORIGINAL candidate class ORIGINAL signed value minus multiple，不以小數近似替代。
- S064 · premise_and_result_audit — 以精確有理數重算 Legendre ORIGINAL candidate class quotient times modulus，不以小數近似替代。
- S063 · premise_and_result_audit — 回到原始資料與本步條件核對，不把單向推論誤稱等價。
- S062 · premise_and_result_audit — 回到原始資料與本步條件核對，不把單向推論誤稱等價。
- S061 · premise_and_result_audit — 以精確有理數重算 Legendre ORIGINAL nonzero root30 exact square，不以小數近似替代。
- S060 · premise_and_result_audit — 回到原始資料與本步條件核對，不把單向推論誤稱等價。
- S059 · premise_and_result_audit — 以精確有理數重算 Legendre ORIGINAL nonzero root29 exact square，不以小數近似替代。
- S058 · premise_and_result_audit — 回到原始資料與本步條件核對，不把單向推論誤稱等價。
- S057 · premise_and_result_audit — 以精確有理數重算 Legendre ORIGINAL nonzero root28 exact square，不以小數近似替代。
- S056 · premise_and_result_audit — 回到原始資料與本步條件核對，不把單向推論誤稱等價。
- S055 · premise_and_result_audit — 以精確有理數重算 Legendre ORIGINAL nonzero root27 exact square，不以小數近似替代。
- S054 · premise_and_result_audit — 回到原始資料與本步條件核對，不把單向推論誤稱等價。
- S053 · premise_and_result_audit — 以精確有理數重算 Legendre ORIGINAL nonzero root26 exact square，不以小數近似替代。
- S052 · premise_and_result_audit — 回到原始資料與本步條件核對，不把單向推論誤稱等價。
- S051 · premise_and_result_audit — 以精確有理數重算 Legendre ORIGINAL nonzero root25 exact square，不以小數近似替代。
- S050 · premise_and_result_audit — 回到原始資料與本步條件核對，不把單向推論誤稱等價。
- S049 · premise_and_result_audit — 以精確有理數重算 Legendre ORIGINAL nonzero root24 exact square，不以小數近似替代。
- S048 · premise_and_result_audit — 回到原始資料與本步條件核對，不把單向推論誤稱等價。
- S047 · premise_and_result_audit — 以精確有理數重算 Legendre ORIGINAL nonzero root23 exact square，不以小數近似替代。
- S046 · premise_and_result_audit — 回到原始資料與本步條件核對，不把單向推論誤稱等價。
- S045 · premise_and_result_audit — 以精確有理數重算 Legendre ORIGINAL nonzero root22 exact square，不以小數近似替代。
- S044 · premise_and_result_audit — 回到原始資料與本步條件核對，不把單向推論誤稱等價。
- S043 · premise_and_result_audit — 以精確有理數重算 Legendre ORIGINAL nonzero root21 exact square，不以小數近似替代。
- S042 · premise_and_result_audit — 回到原始資料與本步條件核對，不把單向推論誤稱等價。
- S041 · premise_and_result_audit — 以精確有理數重算 Legendre ORIGINAL nonzero root20 exact square，不以小數近似替代。
- S040 · premise_and_result_audit — 回到原始資料與本步條件核對，不把單向推論誤稱等價。
- S039 · premise_and_result_audit — 以精確有理數重算 Legendre ORIGINAL nonzero root19 exact square，不以小數近似替代。
- S038 · premise_and_result_audit — 回到原始資料與本步條件核對，不把單向推論誤稱等價。
- S037 · premise_and_result_audit — 以精確有理數重算 Legendre ORIGINAL nonzero root18 exact square，不以小數近似替代。
- S036 · premise_and_result_audit — 回到原始資料與本步條件核對，不把單向推論誤稱等價。
- S035 · premise_and_result_audit — 以精確有理數重算 Legendre ORIGINAL nonzero root17 exact square，不以小數近似替代。
- S034 · premise_and_result_audit — 回到原始資料與本步條件核對，不把單向推論誤稱等價。
- S033 · premise_and_result_audit — 以精確有理數重算 Legendre ORIGINAL nonzero root16 exact square，不以小數近似替代。
- S032 · premise_and_result_audit — 回到原始資料與本步條件核對，不把單向推論誤稱等價。
- S031 · premise_and_result_audit — 以精確有理數重算 Legendre ORIGINAL nonzero root15 exact square，不以小數近似替代。
- S030 · premise_and_result_audit — 回到原始資料與本步條件核對，不把單向推論誤稱等價。
- S029 · premise_and_result_audit — 以精確有理數重算 Legendre ORIGINAL nonzero root14 exact square，不以小數近似替代。
- S028 · premise_and_result_audit — 回到原始資料與本步條件核對，不把單向推論誤稱等價。
- S027 · premise_and_result_audit — 以精確有理數重算 Legendre ORIGINAL nonzero root13 exact square，不以小數近似替代。
- S026 · premise_and_result_audit — 回到原始資料與本步條件核對，不把單向推論誤稱等價。
- S025 · premise_and_result_audit — 以精確有理數重算 Legendre ORIGINAL nonzero root12 exact square，不以小數近似替代。
- S024 · premise_and_result_audit — 回到原始資料與本步條件核對，不把單向推論誤稱等價。
- S023 · premise_and_result_audit — 以精確有理數重算 Legendre ORIGINAL nonzero root11 exact square，不以小數近似替代。
- S022 · premise_and_result_audit — 回到原始資料與本步條件核對，不把單向推論誤稱等價。
- S021 · premise_and_result_audit — 以精確有理數重算 Legendre ORIGINAL nonzero root10 exact square，不以小數近似替代。
- S020 · premise_and_result_audit — 回到原始資料與本步條件核對，不把單向推論誤稱等價。
- S019 · premise_and_result_audit — 以精確有理數重算 Legendre ORIGINAL nonzero root9 exact square，不以小數近似替代。
- S018 · premise_and_result_audit — 回到原始資料與本步條件核對，不把單向推論誤稱等價。
- S017 · premise_and_result_audit — 以精確有理數重算 Legendre ORIGINAL nonzero root8 exact square，不以小數近似替代。
- S016 · premise_and_result_audit — 回到原始資料與本步條件核對，不把單向推論誤稱等價。
- S015 · premise_and_result_audit — 以精確有理數重算 Legendre ORIGINAL nonzero root7 exact square，不以小數近似替代。
- S014 · premise_and_result_audit — 回到原始資料與本步條件核對，不把單向推論誤稱等價。
- S013 · premise_and_result_audit — 以精確有理數重算 Legendre ORIGINAL nonzero root6 exact square，不以小數近似替代。
- S012 · premise_and_result_audit — 回到原始資料與本步條件核對，不把單向推論誤稱等價。
- S011 · premise_and_result_audit — 以精確有理數重算 Legendre ORIGINAL nonzero root5 exact square，不以小數近似替代。
- S010 · premise_and_result_audit — 回到原始資料與本步條件核對，不把單向推論誤稱等價。
- S009 · premise_and_result_audit — 以精確有理數重算 Legendre ORIGINAL nonzero root4 exact square，不以小數近似替代。
- S008 · premise_and_result_audit — 回到原始資料與本步條件核對，不把單向推論誤稱等價。
- S007 · premise_and_result_audit — 以精確有理數重算 Legendre ORIGINAL nonzero root3 exact square，不以小數近似替代。
- S006 · premise_and_result_audit — 回到原始資料與本步條件核對，不把單向推論誤稱等價。
- S005 · premise_and_result_audit — 以精確有理數重算 Legendre ORIGINAL nonzero root2 exact square，不以小數近似替代。
- S004 · premise_and_result_audit — 回到原始資料與本步條件核對，不把單向推論誤稱等價。
- S003 · premise_and_result_audit — 以精確有理數重算 Legendre ORIGINAL nonzero root1 exact square，不以小數近似替代。
- S002 · premise_and_result_audit — 回到原始資料與本步條件核對，不把單向推論誤稱等價。
- S001 · premise_and_result_audit — 回到原始資料與本步條件核對，不把單向推論誤稱等價。





## 結論

(31, 310, 0, 0, [], p_divides_a_so_Legendre_symbol_is_zero_before_residue_classification)

依上列完整代值及條件核對得到原題答案；原題編號、格式與狀態保持不變。





## 本題覆核與來源綁定

覆核日期：2026-10-26

原題、答案、步驟表達式、數值 AST 與既有歷史保持原樣；原來的候選狀態屬於來源歷史，不覆寫為形式化證明。

來源雜湊與覆核憑證
- input commit: 0f7be61e2c22317a4075561dc822c87d881a50db
- original question SHA-256: a5dc4943bbbd7522e7b5350b1b9c469a8026a5cc915dc40a7261b25c84cd2a64
- candidate record SHA-256: a256c57f3cdb2ef5ac0ee3223d3217e21f419ee8ff01b5b44d0e85b30fecc4d2
- semantic review receipt SHA-256: a7c0d888ade6d307703c4222c4137c78c0d2448babdcba2fa3446fe6fdd343c1
- question-first witness SHA-256: c9571f97a37d503ad6a61034cc00108543a05c37ef246d1c4962f55136a3de02
- Lean: NOT_RUN · human review: NOT_PERFORMED

[同源完整 JSON](https://ocme.evemisslab.com/data/question-derivations/questions/q-20261014-advance-20261112-r06-legendre-symbol-0060.json)




