Problem 4
Find all positive integers such that can be partitioned into two disjoint sets whose products are equal.
Step 3 of 4: Apply Wilson’s theorem
In plain words
The product is fixed modulo , independent of .
Detailed analysis
Wilson’s theorem gives , so the product of the six numbers is congruent to modulo .