Explore related knowledge and questions →

Question 6120: Euclidean Integer Quotient and Remainder

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 31

← Question derivation index · Original question batch

R0011-06120 · q-20261009-advance-20261013-r02-integer-0020

Original question and givens

Integer a=-20, positive b=6. Give (q,r) with a=bq+r and 0≤r<b, not a negative remainder from truncation toward zero.

  • G001 — Integer a=-20, positive b=6. Give (q,r) with a=bq+r and 0≤r<b, not a negative remainder from truncation toward zero.

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

declared exact integer or rational-representation protocol

After

retain signs,ordered operands and original index order

Conditions: none

Check these finite data with exact integer arithmetic,without floating approximations or a claim to prove all integer-ring axioms.

Step identifiers and dependencies

Rule: integer_arithmetic_scope · Uses: G001

S002 · implies

Before

divide a=-20 by positive b=6

After

-20=-4·6+4

Conditions: none

The quotient and remainder satisfy the integer identity and0≤r<b;negative dividends still do not use a negative truncated remainder.

Step identifiers and dependencies

Rule: euclidean_division_witness · Uses: G001, S001

S003 · implies

Before

0≤4<6;a=bq+r

After

unique pair(q,r)=(-4,4)

Conditions: none

The difference of two legal remainders has absolute value below b but is an integer multiple of b,so it is0 and the quotient-remainder pair is unique.

Step identifiers and dependencies

Rule: bounded_euclidean_remainder_uniqueness · Uses: G001, S002

Reverse checks

  • S003 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
  • 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

(-4, 4)

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: f11b39423f06bf1ed61b52cd23c798351a2faadcd2940276a53441e9afc25342
  • candidate record SHA-256: 9f5a441fb67b5cdb76af69dc6c1e830e16a20536704a9a06e77953cf4ca84258
  • semantic review receipt SHA-256: b9bbc1c947f477a9c4bb5a579368ac5265f2da4572ce612c30f3633ecaf4ae80
  • question-first witness SHA-256: 93f720df3ab3af13a792a3e6b443728e3c2a56276df839911f36569333236c55
  • Lean: NOT_RUN · human review: NOT_PERFORMED
Same-source full JSON