Explore related knowledge and questions →

Question 24151: Compare a Square-Table Legendre Value with a Separately Computed Half Power

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 121

← Question derivation index · Original question batch

R0047-24151 · q-20261015-advance-20261113-r04-euler-criterion-quadratic-residue-0026

Original question and givens

Use odd prime p=3, original a=1. Give (prime, normalized_class, nonzero_roots, Legendre_symbol, modular_power, signed_power, equal, certificate).

  • G001 — Use odd prime p=3, original a=1. Give (prime, normalized_class, nonzero_roots, Legendre_symbol, modular_power, signed_power, equal, 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 roles = [eulercrit-independent-comparison]

After

derived = [[prime, normalized_class, nonzero_roots, Legendre_symbol, modular_power, signed_power, equal, certificate]]

Conditions: none

List the source field order without JavaScript.Gradient boundary uses its original mode to choose6,8 or7 fields;no padding or answer-derived mode.

Step identifiers and dependencies

Rule: source_ordered_fields_without_JS · Uses: G001

S002 · implies

Before

source roles = [3]

After

derived = [[], Yes]

Conditions: none

A composite has a factor at most its square root;complete trial division qualifies the modulus,not a guessed square/Euler equality.

Step identifiers and dependencies

Rule: Euler_modulus_primality_complete_trial · Uses: G001, S001

S003 · calculation

Before

Euler ORIGINAL signed quotient times modulus := mul(0, 3)

After

Euler ORIGINAL signed quotient times modulus = 0

Conditions: none

Substitute original roles and established intermediates exactly;check nonzero denominators and do not round.

Step identifiers and dependencies

Rule: exact_rational_arithmetic · Uses: G001, S002

S004 · calculation

Before

Euler ORIGINAL signed a minus modulus multiple := sub(1, 0)

After

Euler ORIGINAL signed a minus modulus multiple = 1

Conditions: none

Substitute original roles and established intermediates exactly;check nonzero denominators and do not round.

Step identifiers and dependencies

Rule: exact_rational_arithmetic · Uses: G001, S003

S005 · implies

Before

source roles = [1, 3, 0]

After

derived = [1, Yes]

Conditions: none

Use a=qp+r with0<=r<p,including negative a;retain original a where the interface requests it.

Step identifiers and dependencies

Rule: Euler_Euclidean_class_before_hypothesis · Uses: G001, S004

S006 · implies

Before

source roles = [3, 1, 1]

After

derived = [Yes, Yes]

Conditions: none

Qualify odd primality and the nonzero class first.Define Legendre by the square table before comparing a power.

Step identifiers and dependencies

Rule: Euler_odd_prime_nonzero_qualified · Uses: G001, S005

S007 · calculation

Before

Euler square root candidate1 := mul(1, 1)

After

Euler square root candidate1 = 1

Conditions: none

Substitute original roles and established intermediates exactly;check nonzero denominators and do not round.

Step identifiers and dependencies

Rule: exact_rational_arithmetic · Uses: G001, S006

S008 · calculation

Before

Euler square root candidate2 := mul(2, 2)

After

Euler square root candidate2 = 4

Conditions: none

Substitute original roles and established intermediates exactly;check nonzero denominators and do not round.

Step identifiers and dependencies

Rule: exact_rational_arithmetic · Uses: G001, S007

S009 · implies

Before

source roles = [3, 1]

After

derived = [[[1, 1], [2, 1]], [1, 2], 1]

Conditions: none

Enumerate every nonzero square;roots give+1 and complete absence gives−1.This route does not use Euler criterion to compute Legendre.

Step identifiers and dependencies

Rule: Euler_ALL_nonzero_square_table_defines_Legendre · Uses: G001, S008

S010 · calculation

Before

Euler binary power accumulate0 := mul(1, 1)

After

Euler binary power accumulate0 = 1

Conditions: none

Substitute original roles and established intermediates exactly;check nonzero denominators and do not round.

Step identifiers and dependencies

Rule: exact_rational_arithmetic · Uses: G001, S009

S011 · calculation

Before

Euler binary power square0 := mul(1, 1)

After

Euler binary power square0 = 1

Conditions: none

Substitute original roles and established intermediates exactly;check nonzero denominators and do not round.

Step identifiers and dependencies

Rule: exact_rational_arithmetic · Uses: G001, S010

S012 · implies

Before

source roles = [0, [1, 1, 1], 3, 1, 1]

After

derived = [1, 1, 1, 1, 0]

Conditions: none

Maintain acc*base^remaining congruent to the original half-power:accumulate an odd bit,square the base,and halve the exponent to0.This is separate from the square-table calculation.

Step identifiers and dependencies

Rule: Euler_repeated_squaring_original_exponent_invariant · Uses: G001, S011

S013 · implies

Before

source roles = [3, [1, 2], 1, 1]

After

derived = [1, Yes, one finite instance is not a general theorem proof]

Conditions: none

p−1 represents−1 modulo p,not integer equality.Compare the two computations for this instance;one finite table is not a general theorem proof.

Step identifiers and dependencies

Rule: Euler_decode_p_minus1_and_instance_only_comparison · Uses: G001, S012

Reverse checks

  • S013 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
  • 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 Euler binary power square0 with exact rational arithmetic, not rounded decimals.
  • S010 · premise_and_result_audit — Recompute Euler binary power accumulate0 with exact rational arithmetic, not rounded decimals.
  • S009 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
  • S008 · premise_and_result_audit — Recompute Euler square root candidate2 with exact rational arithmetic, not rounded decimals.
  • S007 · premise_and_result_audit — Recompute Euler square root candidate1 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 — Check against the original data and this step's premises; a one-way implication is not an equivalence.
  • S004 · premise_and_result_audit — Recompute Euler ORIGINAL signed a minus modulus multiple with exact rational arithmetic, not rounded decimals.
  • S003 · premise_and_result_audit — Recompute Euler ORIGINAL signed quotient times modulus 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

(3, 1, [1, 2], 1, 1, 1, Yes, square_table_and_repeated_squaring_are_independent_computations)

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: 5486415e2acda828bb4ade55cad7cbe359a5a40e69715901d1e3c81a5b2adba6
  • candidate record SHA-256: c555e79e6412d1c2f80f27d62f5bc78110a75af219f8e596c88cc6fc2a9cf58d
  • semantic review receipt SHA-256: 9b43b9823e9bd2478d6caa5b57ffed161c2c8956af86974e901d5662ad994386
  • question-first witness SHA-256: eb97596068e2d5648033bab2b8f6ca9b653bbe8cb77c0f8e1d16d0c40e46f50b
  • Lean: NOT_RUN · human review: NOT_PERFORMED
Same-source full JSON