Step-by-step derivation
S001 · implies
Before
source operation=quadratic-square-table;original snapshot and mathematics retained
After
explicit ordered source output fields=[p, nonzero_square_rows, nonzero_residues, residue_count, half_nonzero_count, equal]
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=37;complete possible trial divisors=[2, 3, 4, 5, 6]
After
ALL [divisor,remainder] rows=[[2, 1], [3, 1], [4, 1], [5, 2], [6, 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..36;actual square=1
After
Euclidean square=0*37+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..36;actual square=4
After
Euclidean square=0*37+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..36;actual square=9
After
Euclidean square=0*37+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..36;actual square=16
After
Euclidean square=0*37+16;nonzero square class=16;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..36;actual square=25
After
Euclidean square=0*37+25;nonzero square class=25;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..36;actual square=36
After
Euclidean square=0*37+36;nonzero square class=36;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..36;actual square=49
After
Euclidean square=1*37+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, 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..36;actual square=64
After
Euclidean square=1*37+27;nonzero square class=27;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..36;actual square=81
After
Euclidean square=2*37+7;nonzero square class=7;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..36;actual square=100
After
Euclidean square=2*37+26;nonzero square class=26;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..36;actual square=121
After
Euclidean square=3*37+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, 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..36;actual square=144
After
Euclidean square=3*37+33;nonzero square class=33;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 ORIGINAL nonzero root13 square := mul(13, 13)
After
Quadratic ORIGINAL nonzero root13 square = 169
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 · implies
Before
ORIGINAL nonzero root x=13 in1..36;actual square=169
After
Euclidean square=4*37+21;nonzero square class=21;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, S027
S029 · calculation
Before
Quadratic ORIGINAL nonzero root14 square := mul(14, 14)
After
Quadratic ORIGINAL nonzero root14 square = 196
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 nonzero root x=14 in1..36;actual square=196
After
Euclidean square=5*37+11;nonzero square class=11;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, S029
S031 · calculation
Before
Quadratic ORIGINAL nonzero root15 square := mul(15, 15)
After
Quadratic ORIGINAL nonzero root15 square = 225
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 · implies
Before
ORIGINAL nonzero root x=15 in1..36;actual square=225
After
Euclidean square=6*37+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, S031
S033 · calculation
Before
Quadratic ORIGINAL nonzero root16 square := mul(16, 16)
After
Quadratic ORIGINAL nonzero root16 square = 256
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, S032
S034 · implies
Before
ORIGINAL nonzero root x=16 in1..36;actual square=256
After
Euclidean square=6*37+34;nonzero square class=34;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, S033
S035 · calculation
Before
Quadratic ORIGINAL nonzero root17 square := mul(17, 17)
After
Quadratic ORIGINAL nonzero root17 square = 289
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, S034
S036 · implies
Before
ORIGINAL nonzero root x=17 in1..36;actual square=289
After
Euclidean square=7*37+30;nonzero square class=30;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, S035
S037 · calculation
Before
Quadratic ORIGINAL nonzero root18 square := mul(18, 18)
After
Quadratic ORIGINAL nonzero root18 square = 324
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, S036
S038 · implies
Before
ORIGINAL nonzero root x=18 in1..36;actual square=324
After
Euclidean square=8*37+28;nonzero square class=28;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, S037
S039 · calculation
Before
Quadratic ORIGINAL nonzero root19 square := mul(19, 19)
After
Quadratic ORIGINAL nonzero root19 square = 361
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, S038
S040 · implies
Before
ORIGINAL nonzero root x=19 in1..36;actual square=361
After
Euclidean square=9*37+28;nonzero square class=28;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, S039
S041 · calculation
Before
Quadratic ORIGINAL nonzero root20 square := mul(20, 20)
After
Quadratic ORIGINAL nonzero root20 square = 400
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, S040
S042 · implies
Before
ORIGINAL nonzero root x=20 in1..36;actual square=400
After
Euclidean square=10*37+30;nonzero square class=30;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, S041
S043 · calculation
Before
Quadratic ORIGINAL nonzero root21 square := mul(21, 21)
After
Quadratic ORIGINAL nonzero root21 square = 441
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, S042
S044 · implies
Before
ORIGINAL nonzero root x=21 in1..36;actual square=441
After
Euclidean square=11*37+34;nonzero square class=34;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, S043
S045 · calculation
Before
Quadratic ORIGINAL nonzero root22 square := mul(22, 22)
After
Quadratic ORIGINAL nonzero root22 square = 484
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, S044
S046 · implies
Before
ORIGINAL nonzero root x=22 in1..36;actual square=484
After
Euclidean square=13*37+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, S045
S047 · calculation
Before
Quadratic ORIGINAL nonzero root23 square := mul(23, 23)
After
Quadratic ORIGINAL nonzero root23 square = 529
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, S046
S048 · implies
Before
ORIGINAL nonzero root x=23 in1..36;actual square=529
After
Euclidean square=14*37+11;nonzero square class=11;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, S047
S049 · calculation
Before
Quadratic ORIGINAL nonzero root24 square := mul(24, 24)
After
Quadratic ORIGINAL nonzero root24 square = 576
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, S048
S050 · implies
Before
ORIGINAL nonzero root x=24 in1..36;actual square=576
After
Euclidean square=15*37+21;nonzero square class=21;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, S049
S051 · calculation
Before
Quadratic ORIGINAL nonzero root25 square := mul(25, 25)
After
Quadratic ORIGINAL nonzero root25 square = 625
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, S050
S052 · implies
Before
ORIGINAL nonzero root x=25 in1..36;actual square=625
After
Euclidean square=16*37+33;nonzero square class=33;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, S051
S053 · calculation
Before
Quadratic ORIGINAL nonzero root26 square := mul(26, 26)
After
Quadratic ORIGINAL nonzero root26 square = 676
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, S052
S054 · implies
Before
ORIGINAL nonzero root x=26 in1..36;actual square=676
After
Euclidean square=18*37+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, S053
S055 · calculation
Before
Quadratic ORIGINAL nonzero root27 square := mul(27, 27)
After
Quadratic ORIGINAL nonzero root27 square = 729
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, S054
S056 · implies
Before
ORIGINAL nonzero root x=27 in1..36;actual square=729
After
Euclidean square=19*37+26;nonzero square class=26;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, S055
S057 · calculation
Before
Quadratic ORIGINAL nonzero root28 square := mul(28, 28)
After
Quadratic ORIGINAL nonzero root28 square = 784
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, S056
S058 · implies
Before
ORIGINAL nonzero root x=28 in1..36;actual square=784
After
Euclidean square=21*37+7;nonzero square class=7;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, S057
S059 · calculation
Before
Quadratic ORIGINAL nonzero root29 square := mul(29, 29)
After
Quadratic ORIGINAL nonzero root29 square = 841
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, S058
S060 · implies
Before
ORIGINAL nonzero root x=29 in1..36;actual square=841
After
Euclidean square=22*37+27;nonzero square class=27;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, S059
S061 · calculation
Before
Quadratic ORIGINAL nonzero root30 square := mul(30, 30)
After
Quadratic ORIGINAL nonzero root30 square = 900
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, S060
S062 · implies
Before
ORIGINAL nonzero root x=30 in1..36;actual square=900
After
Euclidean square=24*37+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, S061
S063 · calculation
Before
Quadratic ORIGINAL nonzero root31 square := mul(31, 31)
After
Quadratic ORIGINAL nonzero root31 square = 961
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, S062
S064 · implies
Before
ORIGINAL nonzero root x=31 in1..36;actual square=961
After
Euclidean square=25*37+36;nonzero square class=36;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, S063
S065 · calculation
Before
Quadratic ORIGINAL nonzero root32 square := mul(32, 32)
After
Quadratic ORIGINAL nonzero root32 square = 1024
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, S064
S066 · implies
Before
ORIGINAL nonzero root x=32 in1..36;actual square=1024
After
Euclidean square=27*37+25;nonzero square class=25;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, S065
S067 · calculation
Before
Quadratic ORIGINAL nonzero root33 square := mul(33, 33)
After
Quadratic ORIGINAL nonzero root33 square = 1089
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, S066
S068 · implies
Before
ORIGINAL nonzero root x=33 in1..36;actual square=1089
After
Euclidean square=29*37+16;nonzero square class=16;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, S067
S069 · calculation
Before
Quadratic ORIGINAL nonzero root34 square := mul(34, 34)
After
Quadratic ORIGINAL nonzero root34 square = 1156
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, S068
S070 · implies
Before
ORIGINAL nonzero root x=34 in1..36;actual square=1156
After
Euclidean square=31*37+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, S069
S071 · calculation
Before
Quadratic ORIGINAL nonzero root35 square := mul(35, 35)
After
Quadratic ORIGINAL nonzero root35 square = 1225
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, S070
S072 · implies
Before
ORIGINAL nonzero root x=35 in1..36;actual square=1225
After
Euclidean square=33*37+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, S071
S073 · calculation
Before
Quadratic ORIGINAL nonzero root36 square := mul(36, 36)
After
Quadratic ORIGINAL nonzero root36 square = 1296
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, S072
S074 · implies
Before
ORIGINAL nonzero root x=36 in1..36;actual square=1296
After
Euclidean square=35*37+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, S073
S075 · calculation
Before
Quadratic distinct nonzero residue count := sum(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
After
Quadratic distinct nonzero residue count = 18
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, S074
S076 · calculation
Before
Quadratic ORIGINAL modulus minus1 := sub(37, 1)
After
Quadratic ORIGINAL modulus minus1 = 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, S075
S077 · calculation
Before
Quadratic half of all nonzero roots := div(36, 2)
After
Quadratic half of all nonzero roots = 18
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, S076
S078 · implies
Before
ORIGINAL ODD PRIME p=37;complete nonzero square table=[[1, 1], [2, 4], [3, 9], [4, 16], [5, 25], [6, 36], [7, 12], [8, 27], [9, 7], [10, 26], [11, 10], [12, 33], [13, 21], [14, 11], [15, 3], [16, 34], [17, 30], [18, 28], [19, 28], [20, 30], [21, 34], [22, 3], [23, 11], [24, 21], [25, 33], [26, 10], [27, 26], [28, 7], [29, 27], [30, 12], [31, 36], [32, 25], [33, 16], [34, 9], [35, 4], [36, 1]];distinct classes=[1, 3, 4, 7, 9, 10, 11, 12, 16, 21, 25, 26, 27, 28, 30, 33, 34, 36]
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=18=(37-1)/2=18
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, S077
Result
(37, [[1, 1], [2, 4], [3, 9], [4, 16], [5, 25], [6, 36], [7, 12], [8, 27], [9, 7], [10, 26], [11, 10], [12, 33], [13, 21], [14, 11], [15, 3], [16, 34], [17, 30], [18, 28], [19, 28], [20, 30], [21, 34], [22, 3], [23, 11], [24, 21], [25, 33], [26, 10], [27, 26], [28, 7], [29, 27], [30, 12], [31, 36], [32, 25], [33, 16], [34, 9], [35, 4], [36, 1]], [1, 3, 4, 7, 9, 10, 11, 12, 16, 21, 25, 26, 27, 28, 30, 33, 34, 36], 18, 18, Yes)
The full substitutions and premise checks give the original answer; source identity,format and status are unchanged.