• Courses
    • Math Olympiad Courses
  • Math Olympiad Books
  • Blog
  • Alumni
  • Contact Us

Text:

info@42points.com
42 Points42 Points
  • Math Olympiad Courses
    • Math Olympiad Training
      • AMC 8 & MATHCOUNTS
      • Proof-Based Preparation
      • AMC 10 & AMC 12
      • Junior Math Olympiad
      • Practice of Problem Solving
      • Senior Math Olympiad
  • Math Olympiad Books
  • Blog
  • Alumni
  • Contact

Wilson’s Theorem

May 9, 2022 Math Olympiads Topics, Math Topics

Wilson’s Theorem states that $p$ is prime if and only if

$$(p-1)! \equiv -1 \pmod{19}$$

Problem (Estonia, 2000)

Prove that it is not possible to divide any set of $18$ consecutive positive integers into two disjoint sets $A$ and $B$, such that the product of the elements in $A$ equals the product of the elements in $B$.



Solution
Let $x_1$, $x_2$, …, $x_{18}$ be any $18$ consecutive integers and let us assume the mentioned division exists. Let $p(X)$ denote the product of the elements of the set $X$. Notice that among any $18$ consecutive integers, there is at most one multiple of $19$.

Case 1: one of the numbers is a multiple of $19$.
Let this number belong to the set $A$. Therefore
$$ p(A) \equiv 0 \pmod{19} $$
However, $B$ has no multiples of $19$ and
$$ p(B) \not\equiv 0 \pmod{19} $$
and $p(A) \neq p(B)$. Contradiction.

Case 2: none of the numbers is a multiple of $19$.

Therefore they give remainders $1$, $2$, …, $18$ modulo $19$. Since $19$ is prime, then by Wilson’s Theorem
$$ 18! \equiv -1 \pmod{19} $$
If $p(A) = p(B)$, then
$$ \left( p(A) \right)^2 = p(A) \cdot p(B) \equiv 18! \equiv -1 \pmod{19} $$

This means that a square of some integer gives remainder $-1$ modulo $19$. It is not hard to check that a square modulo $19$ is never $-1$. Contradiction.



Share
4

About 42 Points

At 42 Points, we help students prepare for Math Olympiad competitions through courses and books. Both focus on building problem-solving skills and providing a clear path to success.

You also might be interested in

Polish Mathematical Olympiad, 2021

Nov 20, 2021

Problem 1 Positive integers $a$, $b$, $n$ satisfy the equality[...]

Puerto Rico Team Selection Test, 2023. Day 2

Apr 30, 2023

Problem 5 Six boxes contain apples, bananas, and cucumbers. The[...]

Yellow background with white fonts
AMC 8 PREPARATION Book

AMC 8 Preparation (The Book)

Aug 24, 2021

AMC 8 Preparation  Book presents the most popular methods and[...]

Join our newsletter

Post Archives

Post Categories

Most Liked Posts

  • Solutions to the Polish Mathematical Olympiad, 2021 By 42 Points on December 21, 2021 10
  • Monovariant By 42 Points on June 12, 2021 7
  • Puerto Rico Team Selection Test, 2021. Day 2 By 42 Points on September 14, 2021 7

Tag Cloud

Math Competitions Math Olympiads Math Topics OMPR OMPR 2022 Puerto Rico

Find us on

42 Points

At 42 Points, we help students prepare for Math Olympiad competitions through courses and books. Both focus on building problem-solving skills and providing a clear path to success.

Contact Information

  • 42 Points
  • info@42points.com
  • 42points.com

Quick Links

  • Math Olympiad Courses
  • Math Olympiad Books
  • Blog
  • Alumni

Fresh from 42Pedia blog

  • Puerto Rico Team Selection Test, 2023. Day 2
  • Puerto Rico Team Selection Test, 2023. Day 1
  • Team Selection Test for Centro and Ibero 2022

WE ACCEPT

PayPal Acceptance Mark

© 2026 — 42 Points.

  • Online Math Olympiad Preparation
  • Disclaimer
  • Contact
  • Buy AMC 10 Preparation Book
Prev Next