# Question 33607: Solve a Nonzero-Coefficient Affine Equation in the Prime Field

[Return to catalogue page 169](https://ocme.evemisslab.com/en/questions/page/169/)

[← Question derivation index](https://ocme.evemisslab.com/en/questions/) · [Original question batch](https://ocme.evemisslab.com/en/practice/batch-20261014-advance-20261031-r06-finite-field-foundations/#q-20261014-advance-20261031-r06-finite-field-0057)

This teaching derivation has second-context AI mathematical and bilingual semantic review, limited to the model and assumptions stated in this question. It has no human review or new Lean proof and does not promote the original question or MKO to Canonical truth.

R0066-33607 · q-20261014-advance-20261031-r06-finite-field-0057



## Original question and givens

Use the complete prime field Z_17, with prime p=17, residue labels 0 through p−1, and addition/multiplication modulo p. Nonzero inputs alone may be inverted; division by zero is never allowed. This prime-field family does not assert that every finite field has prime order or that every finite ring is a field. Nonzero a=7, b=7, c=13; solve a*x+b=c. Give (a,b,c,inverse,solution,substitution,unique?).


- G001 — Use the complete prime field Z_17, with prime p=17, residue labels 0 through p−1, and addition/multiplication modulo p. Nonzero inputs alone may be inverted; division by zero is never allowed. This prime-field family does not assert that every finite field has prime order or that every finite ring is a field. Nonzero a=7, b=7, c=13; solve a*x+b=c. Give (a,b,c,inverse,solution,substitution,unique?).





## 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.


- [mko-finite-field](https://ocme.evemisslab.com/en/mko/mko-finite-field/)





## Step-by-step derivation

S001 · impliesBefore

source roles = [qf-mod31-fielddeep-affine-solve, [a, b, c, domain, operation, p]]

After

derived = [fielddeep-affine-solve, Exact_prime_field_Zp]

Conditions: none

THIS source uses LOCAL-hyphen operations with exact keys/domain.Keep source field order and numeric/Boolean/string roles;integer rational texts omit/1.Original questions,English,MKOs,ASTs and statuses remain unchanged.

Step identifiers and dependenciesRule: R66_EXACT_source_bank_keys_local_operation_domain · Uses: G001





S002 · impliesBefore

source roles = [17, [2, 3, 4]]

After

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

Conditions: none

Trial EVERY divisor2 through floor(sqrt(p));a composite would have a factor there.The empty test for p=2 is valid.This qualifies THIS prime field Z_p,not every finite field’s order or every finite ring as a field.

Step identifiers and dependenciesRule: Field_PRIME_complete_trial_divisor_qualification · Uses: G001, S001





S003 · calculationBefore

Field ORIGINAL a times proposed inverse := mul(7, 5)

After

Field ORIGINAL a times proposed inverse = 35

Conditions: none

Calculate exactly from THIS step’s ORIGINAL ordered operands.Retain the SOURCE rational pre-reduction envelope separately;do not use floating values or silently widen a different bank.

Step identifiers and dependenciesRule: exact_rational_arithmetic · Uses: G001, S002





S004 · impliesBefore

source roles = [inverse substitution, 35, 17]

After

derived = [2, 1]

Conditions: none

Use integer Euclidean division: value=n*quotient+remainder with0≤remainder<n.Normalize negative representatives too;do not use floating remainders.

Step identifiers and dependenciesRule: Finite_MOD_euclidean_quotient_remainder · Uses: G001, S003





S005 · calculationBefore

Field ORIGINAL c minus b := sub(13, 7)

After

Field ORIGINAL c minus b = 6

Conditions: none

Calculate exactly from THIS step’s ORIGINAL ordered operands.Retain the SOURCE rational pre-reduction envelope separately;do not use floating values or silently widen a different bank.

Step identifiers and dependenciesRule: exact_rational_arithmetic · Uses: G001, S004





S006 · calculationBefore

Field ORIGINAL inverse times c minus b := mul(5, 6)

After

Field ORIGINAL inverse times c minus b = 30

Conditions: none

Calculate exactly from THIS step’s ORIGINAL ordered operands.Retain the SOURCE rational pre-reduction envelope separately;do not use floating values or silently widen a different bank.

Step identifiers and dependenciesRule: exact_rational_arithmetic · Uses: G001, S005





S007 · impliesBefore

source roles = [affine solution, 30, 17]

After

derived = [1, 13]

Conditions: none

Use integer Euclidean division: value=n*quotient+remainder with0≤remainder<n.Normalize negative representatives too;do not use floating remainders.

Step identifiers and dependenciesRule: Finite_MOD_euclidean_quotient_remainder · Uses: G001, S006





S008 · calculationBefore

Field ORIGINAL a times solution := mul(7, 13)

After

Field ORIGINAL a times solution = 91

Conditions: none

Calculate exactly from THIS step’s ORIGINAL ordered operands.Retain the SOURCE rational pre-reduction envelope separately;do not use floating values or silently widen a different bank.

Step identifiers and dependenciesRule: exact_rational_arithmetic · Uses: G001, S007





S009 · calculationBefore

Field ORIGINAL a solution plus b := sum(91, 7)

After

Field ORIGINAL a solution plus b = 98

Conditions: none

Calculate exactly from THIS step’s ORIGINAL ordered operands.Retain the SOURCE rational pre-reduction envelope separately;do not use floating values or silently widen a different bank.

Step identifiers and dependenciesRule: exact_rational_arithmetic · Uses: G001, S008





S010 · impliesBefore

source roles = [equation substitution, 98, 17]

After

derived = [5, 13]

Conditions: none

Use integer Euclidean division: value=n*quotient+remainder with0≤remainder<n.Normalize negative representatives too;do not use floating remainders.

Step identifiers and dependenciesRule: Finite_MOD_euclidean_quotient_remainder · Uses: G001, S009





S011 · impliesBefore

source roles = [17, 7, 7, 13, 5]

After

derived = [13, 13, Yes]

Conditions: none

Prime p and nonzero a give an inverse.Subtract b,then multiply by it and substitute under the SAME mod-p operations.If x,z solve,then a(x−z)=0;inverse multiplication gives x=z,proving uniqueness.Never divide by0.

Step identifiers and dependenciesRule: Field_INVERT_nonzero_coefficient_and_UNIQUENESS · Uses: G001, S010









## Reverse checks


- S011 · premise_and_result_audit — Reverse-audit THIS step against its ORIGINAL ordered roles and complete premises.Accept the conclusion only under these conditions;do not invert a one-way implication or call a finite check a general formal proof.
- S010 · premise_and_result_audit — Reverse-audit THIS step against its ORIGINAL ordered roles and complete premises.Accept the conclusion only under these conditions;do not invert a one-way implication or call a finite check a general formal proof.
- S009 · premise_and_result_audit — Recompute Field ORIGINAL a solution plus b with exact rational arithmetic, not rounded decimals.
- S008 · premise_and_result_audit — Recompute Field ORIGINAL a times solution with exact rational arithmetic, not rounded decimals.
- S007 · premise_and_result_audit — Reverse-audit THIS step against its ORIGINAL ordered roles and complete premises.Accept the conclusion only under these conditions;do not invert a one-way implication or call a finite check a general formal proof.
- S006 · premise_and_result_audit — Recompute Field ORIGINAL inverse times c minus b with exact rational arithmetic, not rounded decimals.
- S005 · premise_and_result_audit — Recompute Field ORIGINAL c minus b with exact rational arithmetic, not rounded decimals.
- S004 · premise_and_result_audit — Reverse-audit THIS step against its ORIGINAL ordered roles and complete premises.Accept the conclusion only under these conditions;do not invert a one-way implication or call a finite check a general formal proof.
- S003 · premise_and_result_audit — Recompute Field ORIGINAL a times proposed inverse with exact rational arithmetic, not rounded decimals.
- S002 · premise_and_result_audit — Reverse-audit THIS step against its ORIGINAL ordered roles and complete premises.Accept the conclusion only under these conditions;do not invert a one-way implication or call a finite check a general formal proof.
- S001 · premise_and_result_audit — Reverse-audit THIS step against its ORIGINAL ordered roles and complete premises.Accept the conclusion only under these conditions;do not invert a one-way implication or call a finite check a general formal proof.





## Result

(7, 7, 13, 5, 13, 13, Yes)

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: c681abf43dcfa625218d71e1ffd7a45e9fc40435b1bd7d23ca9230b161d4825b
- candidate record SHA-256: fa01197de2bebba7132f8b3f1ede65cade21e0b7ff8ad805987a0b5e55b3bd3a
- semantic review receipt SHA-256: 99b4f114b2ec93164b6aa5681e0107033a240e7a3f0a8988633ba65320ede267
- question-first witness SHA-256: d9bd3a1940da8a73f790ee3fe460c9a8523791bdbe72c8e0304e3740b66710cc
- Lean: NOT_RUN · human review: NOT_PERFORMED

[Same-source full JSON](https://ocme.evemisslab.com/data/question-derivations/questions/q-20261014-advance-20261031-r06-finite-field-0057.json)




