Explore related knowledge and questions →

Question 27729: A Composite Factorial Computation Is an Instance, Not the Converse Proof

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 139

← Question derivation index · Original question batch

R0054-27729 · q-20261015-advance-20261118-r04-wilson-theorem-0054

Original question and givens

Use composite integer n=9. Give (n, prime, running_factorial_residues, factorial_residue, minus_one_residue, Wilson_congruence_fails, finite_scope).

  • G001 — Use composite integer n=9. Give (n, prime, running_factorial_residues, factorial_residue, minus_one_residue, Wilson_congruence_fails, finite_scope).

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 = [wilson-composite-instance]

After

derived = [[n, prime, running_factorial_residues, factorial_residue, minus_one_residue, Wilson_congruence_fails, finite_scope]]

Conditions: none

List the complete operation/mode field order without JavaScript or answer-shape inference;Boolean,string,null and an unclaimed result remain distinct.

Step identifiers and dependencies

Rule: source_ordered_fields_without_JS · Uses: G001

S002 · calculation

Before

Wilson ORIGINAL factorial ORIGINAL running factorial product1 := mul(1, 1)

After

Wilson ORIGINAL factorial ORIGINAL running factorial product1 = 1

Conditions: none

Substitute original roles and established intermediates exactly,not approximations or internally consistent changed operands;extra teaching algebra adds no source-domain gate.

Step identifiers and dependencies

Rule: exact_rational_arithmetic · Uses: G001, S001

S003 · implies

Before

source roles = [Wilson ORIGINAL factorial, 9, 1, 1, 1]

After

derived = [0, 1, Yes, Yes]

Conditions: none

Retain the prior residue and full product at every k,then its unique Euclidean remainder in0..n-1.The invariant is value congruent to k! mod n,not an assumed last table entry.

Step identifiers and dependencies

Rule: Wilson_EACH_running_factorial_exact_Euclidean_remainder · Uses: G001, S002

S004 · calculation

Before

Wilson ORIGINAL factorial ORIGINAL running factorial product2 := mul(1, 2)

After

Wilson ORIGINAL factorial ORIGINAL running factorial product2 = 2

Conditions: none

Substitute original roles and established intermediates exactly,not approximations or internally consistent changed operands;extra teaching algebra adds no source-domain gate.

Step identifiers and dependencies

Rule: exact_rational_arithmetic · Uses: G001, S003

S005 · implies

Before

source roles = [Wilson ORIGINAL factorial, 9, 2, 1, 2]

After

derived = [0, 2, Yes, Yes]

Conditions: none

Retain the prior residue and full product at every k,then its unique Euclidean remainder in0..n-1.The invariant is value congruent to k! mod n,not an assumed last table entry.

Step identifiers and dependencies

Rule: Wilson_EACH_running_factorial_exact_Euclidean_remainder · Uses: G001, S004

S006 · calculation

Before

Wilson ORIGINAL factorial ORIGINAL running factorial product3 := mul(2, 3)

After

Wilson ORIGINAL factorial ORIGINAL running factorial product3 = 6

Conditions: none

Substitute original roles and established intermediates exactly,not approximations or internally consistent changed operands;extra teaching algebra adds no source-domain gate.

Step identifiers and dependencies

Rule: exact_rational_arithmetic · Uses: G001, S005

S007 · implies

Before

source roles = [Wilson ORIGINAL factorial, 9, 3, 2, 6]

After

derived = [0, 6, Yes, Yes]

Conditions: none

Retain the prior residue and full product at every k,then its unique Euclidean remainder in0..n-1.The invariant is value congruent to k! mod n,not an assumed last table entry.

Step identifiers and dependencies

Rule: Wilson_EACH_running_factorial_exact_Euclidean_remainder · Uses: G001, S006

S008 · calculation

Before

Wilson ORIGINAL factorial ORIGINAL running factorial product4 := mul(6, 4)

After

Wilson ORIGINAL factorial ORIGINAL running factorial product4 = 24

Conditions: none

Substitute original roles and established intermediates exactly,not approximations or internally consistent changed operands;extra teaching algebra adds no source-domain gate.

Step identifiers and dependencies

Rule: exact_rational_arithmetic · Uses: G001, S007

S009 · implies

Before

source roles = [Wilson ORIGINAL factorial, 9, 4, 6, 24]

After

derived = [2, 6, Yes, Yes]

Conditions: none

Retain the prior residue and full product at every k,then its unique Euclidean remainder in0..n-1.The invariant is value congruent to k! mod n,not an assumed last table entry.

Step identifiers and dependencies

Rule: Wilson_EACH_running_factorial_exact_Euclidean_remainder · Uses: G001, S008

S010 · calculation

Before

Wilson ORIGINAL factorial ORIGINAL running factorial product5 := mul(6, 5)

After

Wilson ORIGINAL factorial ORIGINAL running factorial product5 = 30

Conditions: none

Substitute original roles and established intermediates exactly,not approximations or internally consistent changed operands;extra teaching algebra adds no source-domain gate.

Step identifiers and dependencies

Rule: exact_rational_arithmetic · Uses: G001, S009

S011 · implies

Before

source roles = [Wilson ORIGINAL factorial, 9, 5, 6, 30]

After

derived = [3, 3, Yes, Yes]

Conditions: none

Retain the prior residue and full product at every k,then its unique Euclidean remainder in0..n-1.The invariant is value congruent to k! mod n,not an assumed last table entry.

Step identifiers and dependencies

Rule: Wilson_EACH_running_factorial_exact_Euclidean_remainder · Uses: G001, S010

S012 · calculation

Before

Wilson ORIGINAL factorial ORIGINAL running factorial product6 := mul(3, 6)

After

Wilson ORIGINAL factorial ORIGINAL running factorial product6 = 18

Conditions: none

Substitute original roles and established intermediates exactly,not approximations or internally consistent changed operands;extra teaching algebra adds no source-domain gate.

Step identifiers and dependencies

Rule: exact_rational_arithmetic · Uses: G001, S011

S013 · implies

Before

source roles = [Wilson ORIGINAL factorial, 9, 6, 3, 18]

After

derived = [2, 0, Yes, Yes]

Conditions: none

Retain the prior residue and full product at every k,then its unique Euclidean remainder in0..n-1.The invariant is value congruent to k! mod n,not an assumed last table entry.

Step identifiers and dependencies

Rule: Wilson_EACH_running_factorial_exact_Euclidean_remainder · Uses: G001, S012

S014 · calculation

Before

Wilson ORIGINAL factorial ORIGINAL running factorial product7 := mul(0, 7)

After

Wilson ORIGINAL factorial ORIGINAL running factorial product7 = 0

Conditions: none

Substitute original roles and established intermediates exactly,not approximations or internally consistent changed operands;extra teaching algebra adds no source-domain gate.

Step identifiers and dependencies

Rule: exact_rational_arithmetic · Uses: G001, S013

S015 · implies

Before

source roles = [Wilson ORIGINAL factorial, 9, 7, 0, 0]

After

derived = [0, 0, Yes, Yes]

Conditions: none

Retain the prior residue and full product at every k,then its unique Euclidean remainder in0..n-1.The invariant is value congruent to k! mod n,not an assumed last table entry.

Step identifiers and dependencies

Rule: Wilson_EACH_running_factorial_exact_Euclidean_remainder · Uses: G001, S014

S016 · calculation

Before

Wilson ORIGINAL factorial ORIGINAL running factorial product8 := mul(0, 8)

After

Wilson ORIGINAL factorial ORIGINAL running factorial product8 = 0

Conditions: none

Substitute original roles and established intermediates exactly,not approximations or internally consistent changed operands;extra teaching algebra adds no source-domain gate.

Step identifiers and dependencies

Rule: exact_rational_arithmetic · Uses: G001, S015

S017 · implies

Before

source roles = [Wilson ORIGINAL factorial, 9, 8, 0, 0]

After

derived = [0, 0, Yes, Yes]

Conditions: none

Retain the prior residue and full product at every k,then its unique Euclidean remainder in0..n-1.The invariant is value congruent to k! mod n,not an assumed last table entry.

Step identifiers and dependencies

Rule: Wilson_EACH_running_factorial_exact_Euclidean_remainder · Uses: G001, S016

S018 · implies

Before

source roles = [9, [[1, 1], [2, 2], [3, 6], [4, 6], [5, 3], [6, 0], [7, 0], [8, 0]]]

After

derived = [No, 0, 8, No, Yes]

Conditions: none

Qualify primality and congruence separately.Both may be False at a composite while equivalence is True.The converse has a separate argument:a proper divisor d>=2 of composite n divides both n and(n-1)!;a congruence to-1 would force d to divide1,a contradiction.This reasoning is not a single instance or finite-cutoff test.

Step identifiers and dependencies

Rule: Wilson_prime_classification_instance_flags_AND_separate_converse_reason · Uses: G001, S017

Reverse checks

  • S018 · premise_and_result_audit — Reverse-check original data,operands,complete scope and premises;finite witnesses,conditional theorem use and formal proof remain distinct.
  • S017 · premise_and_result_audit — Reverse-check original data,operands,complete scope and premises;finite witnesses,conditional theorem use and formal proof remain distinct.
  • S016 · premise_and_result_audit — Recompute Wilson ORIGINAL factorial ORIGINAL running factorial product8 with exact rational arithmetic, not rounded decimals.
  • S015 · premise_and_result_audit — Reverse-check original data,operands,complete scope and premises;finite witnesses,conditional theorem use and formal proof remain distinct.
  • S014 · premise_and_result_audit — Recompute Wilson ORIGINAL factorial ORIGINAL running factorial product7 with exact rational arithmetic, not rounded decimals.
  • S013 · premise_and_result_audit — Reverse-check original data,operands,complete scope and premises;finite witnesses,conditional theorem use and formal proof remain distinct.
  • S012 · premise_and_result_audit — Recompute Wilson ORIGINAL factorial ORIGINAL running factorial product6 with exact rational arithmetic, not rounded decimals.
  • S011 · premise_and_result_audit — Reverse-check original data,operands,complete scope and premises;finite witnesses,conditional theorem use and formal proof remain distinct.
  • S010 · premise_and_result_audit — Recompute Wilson ORIGINAL factorial ORIGINAL running factorial product5 with exact rational arithmetic, not rounded decimals.
  • S009 · premise_and_result_audit — Reverse-check original data,operands,complete scope and premises;finite witnesses,conditional theorem use and formal proof remain distinct.
  • S008 · premise_and_result_audit — Recompute Wilson ORIGINAL factorial ORIGINAL running factorial product4 with exact rational arithmetic, not rounded decimals.
  • S007 · premise_and_result_audit — Reverse-check original data,operands,complete scope and premises;finite witnesses,conditional theorem use and formal proof remain distinct.
  • S006 · premise_and_result_audit — Recompute Wilson ORIGINAL factorial ORIGINAL running factorial product3 with exact rational arithmetic, not rounded decimals.
  • S005 · premise_and_result_audit — Reverse-check original data,operands,complete scope and premises;finite witnesses,conditional theorem use and formal proof remain distinct.
  • S004 · premise_and_result_audit — Recompute Wilson ORIGINAL factorial ORIGINAL running factorial product2 with exact rational arithmetic, not rounded decimals.
  • S003 · premise_and_result_audit — Reverse-check original data,operands,complete scope and premises;finite witnesses,conditional theorem use and formal proof remain distinct.
  • S002 · premise_and_result_audit — Recompute Wilson ORIGINAL factorial ORIGINAL running factorial product1 with exact rational arithmetic, not rounded decimals.
  • S001 · premise_and_result_audit — Reverse-check original data,operands,complete scope and premises;finite witnesses,conditional theorem use and formal proof remain distinct.

Result

(9, No, [[1, 1], [2, 2], [3, 6], [4, 6], [5, 3], [6, 0], [7, 0], [8, 0]], 0, 8, Yes, finite_composite_instance_not_converse_proof)

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: 93e9933f502dcbf70671c11f32d92cb2316d21f153521aa9d9cd24183e8966c9
  • candidate record SHA-256: cd17621e3b79304ecbacf031d6dff55863a702665d7dfc9abe851e87f48f7435
  • semantic review receipt SHA-256: 0a76d8e93c08bb16998a0483f3dfc0504f269fc3e1982e6cd868cab0a2856d54
  • question-first witness SHA-256: 09127b736c225714dfa0b7ceb0e6a6e66df27438b480cad8217d3c2f99ce9437
  • Lean: NOT_RUN · human review: NOT_PERFORMED
Same-source full JSON