Access free live classes and tests on the app
Download
+
Unacademy
  • Goals
    • AFCAT
    • AP EAMCET
    • Bank Exam
    • BPSC
    • CA Foundation
    • CAPF
    • CAT
    • CBSE Class 11
    • CBSE Class 12
    • CDS
    • CLAT
    • CSIR UGC
    • GATE
    • IIT JAM
    • JEE
    • Karnataka CET
    • Karnataka PSC
    • Kerala PSC
    • MHT CET
    • MPPSC
    • NDA
    • NEET PG
    • NEET UG
    • NTA UGC
    • Railway Exam
    • SSC
    • TS EAMCET
    • UPSC
    • WBPSC
    • CFA
Login Join for Free
avtar
  • ProfileProfile
  • Settings Settings
  • Refer your friendsRefer your friends
  • Sign outSign out
  • Terms & conditions
  • •
  • Privacy policy
  • About
  • •
  • Careers
  • •
  • Blog

© 2023 Sorting Hat Technologies Pvt Ltd

  • CAT 2023
  • Study Materials
  • Notifications
  • CAT Syllabus
  • CAT Mock Test
  • CAT Exam Pattern
  • CAT Question Paper
  • CAT Preparation Books
  • Downloads
  • Important Formulas
  • Eligibility Criteria
CAT 2025 » CAT Study Material » Data Interpretation and Logical Reasoning » Wilson Remainder Theorem
scholarship_cat

Wilson Remainder Theorem

To reduce huge numbers with regard to a certain modulus and to solve congruences, Wilson's theorem and Fermat's theorem can be employed.

Table of Content
  •  

Negative remainders are an idea that has been around for a long time. If a mod b’s residual is n, it can alternatively be represented as (n-b). For example, the remainder of 100 times 7 is 2, but it may alternatively be represented as (2 – 7) = -5. The negative remainder is the term for this. This is useful not only when using Wilson’s theorem to solve issues, but also when using Euler’s theorem, Fermat’s little theorem, and the Chinese remainder theorem.

The theorem of Wilson

When a prime number ‘p’ is divided by p, (p-1)! will result in a remainder of (p – 1). Let’s use the prime number 5 as an example. The remainder of 24 mod 5 or 4 is obtained by dividing 4! by 5. When we divide 6! by 7, we get 6.

Some further examples

40! mod 41 will be 40

96! mod 97 will be 96, and so forth.

Remember that the denominator (or divisor) must be a prime number, else the numerator will not be divided entirely.

Wilson’s theorem Corollary

By extending Wilson’s theorem, we can see that when a prime number ‘p’ is divided by p, (p – 2)! will result in a remainder of 1. Negative remainders can be used to demonstrate this.

Let’s say the rest of (p – 2) is! mod p is r.

(p – 1)! mod p is (p – 1)

So, (p – 1) * (p – 2)! mod p is (p – 1)

We can say that [(p – 1) mod p] * [(p – 2)! mod p] is (p – 1) using the property of remainders of a product.

If p is a prime number, then (p – 1) mod p will always be (p – 1) mod p.

So, in order for LHS to equal RHS, the residual in the second part of the statement must equal 1.

(p – 2)! The value of mod p will be one.

While it hasn’t been particularly useful in CAT for a long time, the principle is simple to grasp and therefore significant.

What is the value of 71! mod 73?

87! mod 89 has what value?

Moderate level questions involving Wilson’s theorem

Taking things a step further, we can get problems that are almost direct yet require a second level of thought to solve. As follows:

40! mod 43 has what value?

42! mod 43 is now 42, and 41! mod 43 is now 1. Let’s see what we can do now.

This is where the method we used to get the remainder of (n – 2)! mod n comes in handy. So far, we’ve established:

(-2) * (40! mod 43) = 1

Let r -2r mod 43 = 1 -2r = 43k + 1 be the value of 40! mod 43.

If k = 1, r = -22

If -22 is the residual of 40! mod 43, 43 – 22 = 21 can be calculated using the idea of negative remainders. So there will be 21 remaining.

Try out a few such scenarios and post your results in the comments section:

1) 94! mod 97 = ?

2) 98! mod 101 = ?

3) 70! mod 73 = ?

Are you noticing a pattern?

The remainder will be half of the even integer immediately greater than n for n! mod (n+3), where (n+3) is prime.

Can the remainder of the following phrases be calculated?

4) 93! mod 97 = ?

5) 97! mod 101 = ?

6) 69! mod 73 = ?

Tough questions from Wilson’s theorem

Wilson’s theorem and the Chinese remainder theorem are combined in the last type of question. 195! mod 394 =?

394 = 2 * 197, and 197 and 2 are coprime. The factorial and composite divisors should strongly suggest this kind.

195! mod 195! mod 2 is 0 and 197 is 1.

The residual will be equal to 197k + 1 = 2m, according to the Chinese remainder theorem.

The remaining will be 198 if k = 1.

Conclusion

Consider the task of finding the factorial of a prime number that is close to the input number, i.e., we want to discover the value of “n! percent p” such that n p, p is a prime, and n is close to p. For instance, (25!% 29). We know 28! is -1 according to Wilson’s theorem. We must therefore get [(-1) * inverse(28, 29) * inverse(27, 29) * inverse(26)]. percent 29. inverse(x, p) yields the modulo p inverse of x.

faq

Frequently asked questions

Get answers to the most common queries related to the CAT Examination Preparation.

Wilson's theorem has a number of applications?

Wilson’s theorem states that any prime p divides (p − 1)! + 1, with n! being the factorial notation for 1 ×...Read full

What exactly is Fermat's little theorem?

Fermat’s little theorem states that if p is a prime number, then for any integer a, the number a ...Read full

Is there such a thing as a quadratic residue?

Every integer is a quadratic residue when multiplied by modulo 2. According to Euler’s criterion, for every od...Read full

What is the conclusion of Euler's theorem?

Euler’s theorem (also known as the Fermat–Euler theorem or Euler’s totient theorem) says that if n and...Read full

How do you show that Wilson's theorem is reversible?

Wilson’s Theorem states that for any prime p, (p-1)! ≡ 1(modp), but we can show that the opposite is also t...Read full

Wilson’s theorem states that any prime p divides (p − 1)! + 1, with n! being the factorial notation for 1 × 2 × 3 × 4 × ⋯ × n.

Fermat’s little theorem states that if p is a prime number, then for any integer a, the number a p – a is an integer multiple of p. ap ≡ a (mod p). Special Case: If a is not divisible by p, Fermat’s little theorem is equivalent to the statement that a p-1-1 is an integer multiple of p.

Every integer is a quadratic residue when multiplied by modulo 2. According to Euler’s criterion, for every odd prime number p, there are (p + 1)/2 residues (including 0) and (p – 1)/2 nonresidues. In this instance, it’s common to treat 0 as a special case and work within the field’s multiplicative group of nonzero members.

Euler’s theorem (also known as the Fermat–Euler theorem or Euler’s totient theorem) says that if n and an are coprime positive integers, and is Euler’s totient function, then a raised to the power is congruent to 1 modulo n.

Wilson’s Theorem states that for any prime p, (p-1)! ≡ 1(modp), but we can show that the opposite is also true. That is, if n is a positive integer, then n must be prime.

Crack CAT with Unacademy

Get subscription and access unlimited live and recorded courses from India’s best educators

  • Structured syllabus
  • Daily live classes
  • Ask doubts
  • Tests & practice
Learn more

Notifications

Get all the important information related to the CAT Exam including the process of application, important calendar dates, eligibility criteria, exam centers etc.

CAT Eligibility Criteria 2023
CAT Exam Pattern 2023
CAT Result 2022
CAT Syllabus 2023 – CAT Exam Syllabus – Download Latest PDF
IBSAT 2022 Notification
IIFT Notification
MAH CET Notification
MICAT Notification
NMAT Notification
SNAP Notification
TISSNET Notification
Top Colleges in India That Accept CAT Score
XAT Notification
See all

Related articles

Learn more topics related to Data Interpretation and Logical Reasoning
Why Use the Critical Path Method

A brief note on Why use the critical path method, Improves future planning, Facilitates more effective resource management, Helps avoid bottlenecks and many things.

What is Types of Analogy Reasoning

In this lecture we’re going to learn about types of analogy reasoning, the number based/numerical analogy, letter and number based analogy and general knowledge-based analogy, questions based on analogy and many more things.

What is Posterior Probability

A posterior probability, in Bayesian records, is the revised or updated probability of an event happening after taking into account new records. The posterior probability is calculated by updating the prior probability by using Bayes’ theorem. In statistical phrases, the posterior probability is the probability of event A taking place given that event B has taken place.

What is Permutation

While reading this article you may grasp the concept of permutation. Here we also discussed topics like Different permutation types.

See all
Access more than

469+ courses for CAT – Optional

Get subscription

Trending Topics

  • CAT Mock Test
  • CAT Question Papers
  • CAT 2021 Question Paper
  • CAT 2020 Question Paper
  • CAT Question Paper 2019 PDF
  • Best Books for CAT Preparation
  • CAT Eligibility Criteria
  • CAT Syllabus
  • CAT Exam Pattern
  • CAT Result
combat_cat

Related links

  • Co-ordinate Geometry applications
  • What Is A Polygon?
  • Uses of a Quadrilateral
  • Algebraic Identities
  • SPSS Full Form
  • Geometric Progression’s Uses
  • Blood Relation Questions
freeliveclasses_cat
CAT 2024 Question Paper
.
Company Logo

Unacademy is India’s largest online learning platform. Download our apps to start learning


Starting your preparation?

Call us and we will answer all your questions about learning on Unacademy

Call +91 8585858585

Company
About usShikshodayaCareers
we're hiring
BlogsPrivacy PolicyTerms and Conditions
Help & support
User GuidelinesSite MapRefund PolicyTakedown PolicyGrievance Redressal
Products
Learner appLearner appEducator appEducator appParent appParent app
Popular goals
IIT JEEUPSCSSCCSIR UGC NETNEET UG
Trending exams
GATECATCANTA UGC NETBank Exams
Study material
UPSC Study MaterialNEET UG Study MaterialCA Foundation Study MaterialJEE Study MaterialSSC Study Material

© 2025 Sorting Hat Technologies Pvt Ltd

Unacademy
  • Goals
    • AFCAT
    • AP EAMCET
    • Bank Exam
    • BPSC
    • CA Foundation
    • CAPF
    • CAT
    • CBSE Class 11
    • CBSE Class 12
    • CDS
    • CLAT
    • CSIR UGC
    • GATE
    • IIT JAM
    • JEE
    • Karnataka CET
    • Karnataka PSC
    • Kerala PSC
    • MHT CET
    • MPPSC
    • NDA
    • NEET PG
    • NEET UG
    • NTA UGC
    • Railway Exam
    • SSC
    • TS EAMCET
    • UPSC
    • WBPSC
    • CFA

Share via

COPY