• 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

42 Points is an Online Math Training Program and Tutoring Service. Learn more about our services at https://42points.com/

You also might be interested in

Fermat’s Little Theorem

Jun 14, 2021

Fermat’s Little Theorem states that for a prime $p$ and[...]

Puerto Rico Team Selection Test, 2023. Day 2

Apr 30, 2023

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

AM-GM Inequality for Three Variables

Jun 14, 2021

Inequality of Arithmetic and Geometric Means (AM-GM) states that for[...]

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 guide students on their journey through Math Olympiad Preparation. We offer two key resources for students aiming to excel in competitions: comprehensive courses and carefully crafted books. Both are designed to build problem-solving skills and provide a clear path toward success in Math Olympiads.

 

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