Explore related knowledge and questions →

Question 23330: Normalize the Candidate before Checking Nonzero Square Roots

On this page
  1. Original question and givens
  2. Definition and scope
  3. Step-by-step derivation
  4. Reverse checks
  5. Result
  6. This question review and source binding

Return to catalogue page 117

← Question derivation index · Original question batch

R0045-23330 · q-20261014-advance-20261111-r06-quadratic-residue-0030

Original question and givens

Use bounded odd prime p=13 and the declared nonzero quadratic-residue convention. Enumerate every x=1..p−1 and x^2 modulo p; normalize input classes into0..p−1. Zero is excluded from nonzero residues. Do not assume an Euler-criterion or Legendre-symbol result. Original a=5. Give (p, a, normalized_class, nonzero_roots, nonzero_residue, certificate).

  • G001 — Use bounded odd prime p=13 and the declared nonzero quadratic-residue convention. Enumerate every x=1..p−1 and x^2 modulo p; normalize input classes into0..p−1. Zero is excluded from nonzero residues. Do not assume an Euler-criterion or Legendre-symbol result. Original a=5. Give (p, a, normalized_class, nonzero_roots, nonzero_residue, certificate).

Definition and scope

Use the original question domain, assumptions and cited MKO definitions. This item has second-context mathematical and bilingual review, with the model, answer and every arithmetic step independently recomputed from the original parameters; the source question remains a candidate.

Step-by-step derivation

S001 · implies

Before

source operation=quadratic-membership-witness;original snapshot and mathematics retained

After

explicit ordered source output fields=[p, a, normalized_class, nonzero_roots, nonzero_residue, certificate]

Conditions: none

Retain the historical interface marker while listing source fields without JavaScript.Tags and No retain their claim scope;source-protocol ordering is not a mathematical proof.

Step identifiers and dependencies

Rule: source_ordered_interface_explicit_without_javascript · Uses: G001

S002 · implies

Before

Quadratic ORIGINAL modulus:ORIGINAL integer=13;complete possible trial divisors=[2, 3]

After

ALL [divisor,remainder] rows=[[2, 1], [3, 1]];prime=Yes;a composite>1 has a factor at most its square root

Conditions: none

Check the entire square-root divisor range.The empty range qualifies prime2,but not0 or1.Samples,square tables or an Euler criterion do not replace primality qualification.

Step identifiers and dependencies

Rule: finite_prime_ALL_trial_divisors_through_square_root · Uses: G001, S001

S003 · calculation

Before

Quadratic ORIGINAL nonzero root1 square := mul(1, 1)

After

Quadratic ORIGINAL nonzero root1 square = 1

Conditions: none

Substitute this question's original roles,order and established intermediates exactly,not floats or another question's data.

Step identifiers and dependencies

Rule: exact_rational_arithmetic · Uses: G001, S002

S004 · implies

Before

ORIGINAL nonzero root x=1 in1..12;actual square=1

After

Euclidean square=0*13+1;nonzero square class=1;complete root-index order retained

Conditions: none

Enumerate every nonzero root with its exact square and modular decomposition.A nonzero x cannot square to0 modulo a prime.This is neither a residue sample nor an Euler/Legendre shortcut.

Step identifiers and dependencies

Rule: quadratic_ALL_nonzero_square_rows_not_sample · Uses: G001, S003

S005 · calculation

Before

Quadratic ORIGINAL nonzero root2 square := mul(2, 2)

After

Quadratic ORIGINAL nonzero root2 square = 4

Conditions: none

Substitute this question's original roles,order and established intermediates exactly,not floats or another question's data.

Step identifiers and dependencies

Rule: exact_rational_arithmetic · Uses: G001, S004

S006 · implies

Before

ORIGINAL nonzero root x=2 in1..12;actual square=4

After

Euclidean square=0*13+4;nonzero square class=4;complete root-index order retained

Conditions: none

Enumerate every nonzero root with its exact square and modular decomposition.A nonzero x cannot square to0 modulo a prime.This is neither a residue sample nor an Euler/Legendre shortcut.

Step identifiers and dependencies

Rule: quadratic_ALL_nonzero_square_rows_not_sample · Uses: G001, S005

S007 · calculation

Before

Quadratic ORIGINAL nonzero root3 square := mul(3, 3)

After

Quadratic ORIGINAL nonzero root3 square = 9

Conditions: none

Substitute this question's original roles,order and established intermediates exactly,not floats or another question's data.

Step identifiers and dependencies

Rule: exact_rational_arithmetic · Uses: G001, S006

S008 · implies

Before

ORIGINAL nonzero root x=3 in1..12;actual square=9

After

Euclidean square=0*13+9;nonzero square class=9;complete root-index order retained

Conditions: none

Enumerate every nonzero root with its exact square and modular decomposition.A nonzero x cannot square to0 modulo a prime.This is neither a residue sample nor an Euler/Legendre shortcut.

Step identifiers and dependencies

Rule: quadratic_ALL_nonzero_square_rows_not_sample · Uses: G001, S007

S009 · calculation

Before

Quadratic ORIGINAL nonzero root4 square := mul(4, 4)

After

Quadratic ORIGINAL nonzero root4 square = 16

Conditions: none

Substitute this question's original roles,order and established intermediates exactly,not floats or another question's data.

Step identifiers and dependencies

Rule: exact_rational_arithmetic · Uses: G001, S008

S010 · implies

Before

ORIGINAL nonzero root x=4 in1..12;actual square=16

After

Euclidean square=1*13+3;nonzero square class=3;complete root-index order retained

Conditions: none

Enumerate every nonzero root with its exact square and modular decomposition.A nonzero x cannot square to0 modulo a prime.This is neither a residue sample nor an Euler/Legendre shortcut.

Step identifiers and dependencies

Rule: quadratic_ALL_nonzero_square_rows_not_sample · Uses: G001, S009

S011 · calculation

Before

Quadratic ORIGINAL nonzero root5 square := mul(5, 5)

After

Quadratic ORIGINAL nonzero root5 square = 25

Conditions: none

Substitute this question's original roles,order and established intermediates exactly,not floats or another question's data.

Step identifiers and dependencies

Rule: exact_rational_arithmetic · Uses: G001, S010

S012 · implies

Before

ORIGINAL nonzero root x=5 in1..12;actual square=25

After

Euclidean square=1*13+12;nonzero square class=12;complete root-index order retained

Conditions: none

Enumerate every nonzero root with its exact square and modular decomposition.A nonzero x cannot square to0 modulo a prime.This is neither a residue sample nor an Euler/Legendre shortcut.

Step identifiers and dependencies

Rule: quadratic_ALL_nonzero_square_rows_not_sample · Uses: G001, S011

S013 · calculation

Before

Quadratic ORIGINAL nonzero root6 square := mul(6, 6)

After

Quadratic ORIGINAL nonzero root6 square = 36

Conditions: none

Substitute this question's original roles,order and established intermediates exactly,not floats or another question's data.

Step identifiers and dependencies

Rule: exact_rational_arithmetic · Uses: G001, S012

S014 · implies

Before

ORIGINAL nonzero root x=6 in1..12;actual square=36

After

Euclidean square=2*13+10;nonzero square class=10;complete root-index order retained

Conditions: none

Enumerate every nonzero root with its exact square and modular decomposition.A nonzero x cannot square to0 modulo a prime.This is neither a residue sample nor an Euler/Legendre shortcut.

Step identifiers and dependencies

Rule: quadratic_ALL_nonzero_square_rows_not_sample · Uses: G001, S013

S015 · calculation

Before

Quadratic ORIGINAL nonzero root7 square := mul(7, 7)

After

Quadratic ORIGINAL nonzero root7 square = 49

Conditions: none

Substitute this question's original roles,order and established intermediates exactly,not floats or another question's data.

Step identifiers and dependencies

Rule: exact_rational_arithmetic · Uses: G001, S014

S016 · implies

Before

ORIGINAL nonzero root x=7 in1..12;actual square=49

After

Euclidean square=3*13+10;nonzero square class=10;complete root-index order retained

Conditions: none

Enumerate every nonzero root with its exact square and modular decomposition.A nonzero x cannot square to0 modulo a prime.This is neither a residue sample nor an Euler/Legendre shortcut.

Step identifiers and dependencies

Rule: quadratic_ALL_nonzero_square_rows_not_sample · Uses: G001, S015

S017 · calculation

Before

Quadratic ORIGINAL nonzero root8 square := mul(8, 8)

After

Quadratic ORIGINAL nonzero root8 square = 64

Conditions: none

Substitute this question's original roles,order and established intermediates exactly,not floats or another question's data.

Step identifiers and dependencies

Rule: exact_rational_arithmetic · Uses: G001, S016

S018 · implies

Before

ORIGINAL nonzero root x=8 in1..12;actual square=64

After

Euclidean square=4*13+12;nonzero square class=12;complete root-index order retained

Conditions: none

Enumerate every nonzero root with its exact square and modular decomposition.A nonzero x cannot square to0 modulo a prime.This is neither a residue sample nor an Euler/Legendre shortcut.

Step identifiers and dependencies

Rule: quadratic_ALL_nonzero_square_rows_not_sample · Uses: G001, S017

S019 · calculation

Before

Quadratic ORIGINAL nonzero root9 square := mul(9, 9)

After

Quadratic ORIGINAL nonzero root9 square = 81

Conditions: none

Substitute this question's original roles,order and established intermediates exactly,not floats or another question's data.

Step identifiers and dependencies

Rule: exact_rational_arithmetic · Uses: G001, S018

S020 · implies

Before

ORIGINAL nonzero root x=9 in1..12;actual square=81

After

Euclidean square=6*13+3;nonzero square class=3;complete root-index order retained

Conditions: none

Enumerate every nonzero root with its exact square and modular decomposition.A nonzero x cannot square to0 modulo a prime.This is neither a residue sample nor an Euler/Legendre shortcut.

Step identifiers and dependencies

Rule: quadratic_ALL_nonzero_square_rows_not_sample · Uses: G001, S019

S021 · calculation

Before

Quadratic ORIGINAL nonzero root10 square := mul(10, 10)

After

Quadratic ORIGINAL nonzero root10 square = 100

Conditions: none

Substitute this question's original roles,order and established intermediates exactly,not floats or another question's data.

Step identifiers and dependencies

Rule: exact_rational_arithmetic · Uses: G001, S020

S022 · implies

Before

ORIGINAL nonzero root x=10 in1..12;actual square=100

After

Euclidean square=7*13+9;nonzero square class=9;complete root-index order retained

Conditions: none

Enumerate every nonzero root with its exact square and modular decomposition.A nonzero x cannot square to0 modulo a prime.This is neither a residue sample nor an Euler/Legendre shortcut.

Step identifiers and dependencies

Rule: quadratic_ALL_nonzero_square_rows_not_sample · Uses: G001, S021

S023 · calculation

Before

Quadratic ORIGINAL nonzero root11 square := mul(11, 11)

After

Quadratic ORIGINAL nonzero root11 square = 121

Conditions: none

Substitute this question's original roles,order and established intermediates exactly,not floats or another question's data.

Step identifiers and dependencies

Rule: exact_rational_arithmetic · Uses: G001, S022

S024 · implies

Before

ORIGINAL nonzero root x=11 in1..12;actual square=121

After

Euclidean square=9*13+4;nonzero square class=4;complete root-index order retained

Conditions: none

Enumerate every nonzero root with its exact square and modular decomposition.A nonzero x cannot square to0 modulo a prime.This is neither a residue sample nor an Euler/Legendre shortcut.

Step identifiers and dependencies

Rule: quadratic_ALL_nonzero_square_rows_not_sample · Uses: G001, S023

S025 · calculation

Before

Quadratic ORIGINAL nonzero root12 square := mul(12, 12)

After

Quadratic ORIGINAL nonzero root12 square = 144

Conditions: none

Substitute this question's original roles,order and established intermediates exactly,not floats or another question's data.

Step identifiers and dependencies

Rule: exact_rational_arithmetic · Uses: G001, S024

S026 · implies

Before

ORIGINAL nonzero root x=12 in1..12;actual square=144

After

Euclidean square=11*13+1;nonzero square class=1;complete root-index order retained

Conditions: none

Enumerate every nonzero root with its exact square and modular decomposition.A nonzero x cannot square to0 modulo a prime.This is neither a residue sample nor an Euler/Legendre shortcut.

Step identifiers and dependencies

Rule: quadratic_ALL_nonzero_square_rows_not_sample · Uses: G001, S025

S027 · calculation

Before

Quadratic distinct nonzero residue count := sum(1, 1, 1, 1, 1, 1)

After

Quadratic distinct nonzero residue count = 6

Conditions: none

Substitute this question's original roles,order and established intermediates exactly,not floats or another question's data.

Step identifiers and dependencies

Rule: exact_rational_arithmetic · Uses: G001, S026

S028 · calculation

Before

Quadratic ORIGINAL modulus minus1 := sub(13, 1)

After

Quadratic ORIGINAL modulus minus1 = 12

Conditions: none

Substitute this question's original roles,order and established intermediates exactly,not floats or another question's data.

Step identifiers and dependencies

Rule: exact_rational_arithmetic · Uses: G001, S027

S029 · calculation

Before

Quadratic half of all nonzero roots := div(12, 2)

After

Quadratic half of all nonzero roots = 6

Conditions: none

Substitute this question's original roles,order and established intermediates exactly,not floats or another question's data.

Step identifiers and dependencies

Rule: exact_rational_arithmetic · Uses: G001, S028

S030 · implies

Before

ORIGINAL ODD PRIME p=13;complete nonzero square table=[[1, 1], [2, 4], [3, 9], [4, 3], [5, 12], [6, 10], [7, 10], [8, 12], [9, 3], [10, 9], [11, 4], [12, 1]];distinct classes=[1, 3, 4, 9, 10, 12]

After

x^2=y^2 implies p divides(x-y)(x+y),so x=y or x=-y modp;odd p and nonzero x make opposite roots DISTINCT;each image has2 roots,so residue count=6=(13-1)/2=6

Conditions: none

The prime-field no-zero-divisor property gives x=±y;oddness makes2x nonzero.The opposite pairs partition all p−1 nonzero roots.This proves both counting and two-root statements,not their extension to zero,2 or composite moduli.

Step identifiers and dependencies

Rule: quadratic_prime_field_opposite_root_pairs_exactly_two · Uses: G001, S029

S031 · calculation

Before

Quadratic ORIGINAL candidate class Euclidean quotient times modulus := mul(0, 13)

After

Quadratic ORIGINAL candidate class Euclidean quotient times modulus = 0

Conditions: none

Substitute this question's original roles,order and established intermediates exactly,not floats or another question's data.

Step identifiers and dependencies

Rule: exact_rational_arithmetic · Uses: G001, S030

S032 · calculation

Before

Quadratic ORIGINAL candidate class ORIGINAL signed value minus multiple := sub(5, 0)

After

Quadratic ORIGINAL candidate class ORIGINAL signed value minus multiple = 5

Conditions: none

Substitute this question's original roles,order and established intermediates exactly,not floats or another question's data.

Step identifiers and dependencies

Rule: exact_rational_arithmetic · Uses: G001, S031

S033 · implies

Before

Quadratic ORIGINAL candidate class:ORIGINAL signed value=5;positive modulus=13;actual quotient=0

After

canonical residue=5;value=quotient*modulus+residue and0<=residue<modulus

Conditions: none

Retain the original signed value and congruence class via Euclidean division;do not mistake a language-specific negative remainder for the canonical class.

Step identifiers and dependencies

Rule: signed_mod_ORIGINAL_class_normalized_not_changed · Uses: G001, S032

Reverse checks

  • S033 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
  • S032 · premise_and_result_audit — Recompute Quadratic ORIGINAL candidate class ORIGINAL signed value minus multiple with exact rational arithmetic, not rounded decimals.
  • S031 · premise_and_result_audit — Recompute Quadratic ORIGINAL candidate class Euclidean quotient times modulus with exact rational arithmetic, not rounded decimals.
  • S030 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
  • S029 · premise_and_result_audit — Recompute Quadratic half of all nonzero roots with exact rational arithmetic, not rounded decimals.
  • S028 · premise_and_result_audit — Recompute Quadratic ORIGINAL modulus minus1 with exact rational arithmetic, not rounded decimals.
  • S027 · premise_and_result_audit — Recompute Quadratic distinct nonzero residue count with exact rational arithmetic, not rounded decimals.
  • S026 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
  • S025 · premise_and_result_audit — Recompute Quadratic ORIGINAL nonzero root12 square with exact rational arithmetic, not rounded decimals.
  • S024 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
  • S023 · premise_and_result_audit — Recompute Quadratic ORIGINAL nonzero root11 square with exact rational arithmetic, not rounded decimals.
  • S022 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
  • S021 · premise_and_result_audit — Recompute Quadratic ORIGINAL nonzero root10 square with exact rational arithmetic, not rounded decimals.
  • S020 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
  • S019 · premise_and_result_audit — Recompute Quadratic ORIGINAL nonzero root9 square with exact rational arithmetic, not rounded decimals.
  • S018 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
  • S017 · premise_and_result_audit — Recompute Quadratic ORIGINAL nonzero root8 square with exact rational arithmetic, not rounded decimals.
  • S016 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
  • S015 · premise_and_result_audit — Recompute Quadratic ORIGINAL nonzero root7 square with exact rational arithmetic, not rounded decimals.
  • S014 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
  • S013 · premise_and_result_audit — Recompute Quadratic ORIGINAL nonzero root6 square with exact rational arithmetic, not rounded decimals.
  • S012 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
  • S011 · premise_and_result_audit — Recompute Quadratic ORIGINAL nonzero root5 square with exact rational arithmetic, not rounded decimals.
  • S010 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
  • S009 · premise_and_result_audit — Recompute Quadratic ORIGINAL nonzero root4 square with exact rational arithmetic, not rounded decimals.
  • S008 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
  • S007 · premise_and_result_audit — Recompute Quadratic ORIGINAL nonzero root3 square with exact rational arithmetic, not rounded decimals.
  • S006 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
  • S005 · premise_and_result_audit — Recompute Quadratic ORIGINAL nonzero root2 square with exact rational arithmetic, not rounded decimals.
  • S004 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
  • S003 · premise_and_result_audit — Recompute Quadratic ORIGINAL nonzero root1 square with exact rational arithmetic, not rounded decimals.
  • S002 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
  • S001 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.

Result

(13, 5, 5, [], No, complete_nonzero_square_table_has_no_root)

The full substitutions and premise checks give the original answer; source identity,format and status are unchanged.

This question review and source binding

Review date: 2026-10-26

Original questions, answers, step expressions, numeric ASTs and historical records are retained. Source candidate labels remain historical and are not overwritten as formal proof.

Source hashes and review receipts
  • input commit: 0f7be61e2c22317a4075561dc822c87d881a50db
  • original question SHA-256: a7a0665971a89f799ccae29b670347898db65493cee8a0dc4c9e19b05daf0373
  • candidate record SHA-256: af6db11e086dc19c82eaabd0173275b527ef8fc9ec34ced72a1b3d08c7b6f85d
  • semantic review receipt SHA-256: 357d7ad7a6726b2a757558d3b9586a408ade06526cc023da093719c292704438
  • question-first witness SHA-256: 99cefe17e98c7a74321801cf72df6d02fc95b6a6b78aa335accb7e11ed467b2a
  • Lean: NOT_RUN · human review: NOT_PERFORMED
Same-source full JSON