Skip to content
geeksforgeeks
  • Tutorials
    • Python
    • Java
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
    • Practice Coding Problems
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Number System and Arithmetic
  • Algebra
  • Set Theory
  • Probability
  • Statistics
  • Geometry
  • Calculus
  • Logarithms
  • Mensuration
  • Matrices
  • Trigonometry
  • Mathematics
Open In App
Next Article:
Quotient Remainder Theorem
Next article icon

Quotient Remainder Theorem

Last Updated : 31 Jul, 2024
Comments
Improve
Suggest changes
Like Article
Like
Report

The Quotient Remainder Theorem is a fundamental result in arithmetic and algebra that describes the relationship between dividend, divisor, quotient, and remainder. This theorem is crucial in understanding division in the set of integers and has significant applications in number theory, computer science, and engineering.

Quotient-Remainder-Theorem-copy

Table of Content

  • What is the Quotient Remainder Theorem?
    • Quotient Remainder Theorem Examples
  • Applications of Quotient Remainder Theorem in Engineering
    • 1. Modular Arithmetic
    • 2. Computer Algorithms
    • 3. Number Theory
    • 4. Digital Signal Processing
    • Solved Examples on Quotient Remainder Theorem
    • Practice Examples - Quotient Remainder Theorem

What is the Quotient Remainder Theorem?

The Quotient Remainder Theorem states that for any integer a and any positive integer b, there exist unique integers q (quotient) and r (remainder) such that:

a = b x q + r,

where 0 \leq r < b

Quotient remainder theorem is the fundamental theorem in modular arithmetic. It is used to prove Modular Addition and Modular Multiplication.

Quotient Remainder Theorem Examples

Example 1:


If a = 22, b = 4 then q = 5, r = 2 22 = 4 x 5 + 2

Example 2:

If a = -19, b = 5 then q = -4, r = 1 -19 = 5 x -4 + 1

Quotient Remainder Theorem Proof

To prove the Quotient Remainder Theorem, we use the properties of the division algorithm:

Existence: Given any integer a and positive integer b, we can divide a by b to obtain a quotient q and a remainder r such that: a = bq + r where 0 ≤ r < b. This follows directly from the division algorithm, which guarantees the existence of such q and r.

Uniqueness: Suppose there exist two pairs of integers (q1, r1) and (q2, r2) such that:

a = bq1 + r1
​a = bq2 + r2

with 0 ≤ r1 < b and 0 ≤ r2 < b.

Subtracting these two equations gives:

bq1 + r1 = bq2 + r2
b(q1 - q2) = r2 - r1

Since 0 ≤ r1 < b and 0 ≤ r2 < b, the difference (r2 - r1​) must be less than b in absolute value. Thus, b(q1 - q2) = r2 - r1​ implies q1 = q2 and r1 = r2​, ensuring the uniqueness of the quotient and remainder.

Applications of Quotient Remainder Theorem in Engineering

1. Modular Arithmetic

The Quotient Remainder Theorem is the foundation of modular arithmetic, where the remainder r is used to define equivalence classes modulo b. This is essential in cryptography, coding theory, and computer algorithms.

2. Computer Algorithms

Many computer algorithms use the Quotient Remainder Theorem for tasks such as hashing, encryption, and solving Diophantine equations.

3. Number Theory

The Quotient Remainder Theorem is used to prove various properties of integers, such as the Euclidean algorithm for finding the greatest common divisor (GCD) and solving linear congruences.

4. Digital Signal Processing

In digital signal processing, the theorem is used in algorithms that require modular arithmetic, such as the Fast Fourier Transform (FFT).

Solved Examples on Quotient Remainder Theorem

Example 1: Divide 17 by 5 using the Quotient Remainder Theorem.

Solution:

a = 17 (dividend)

b = 5 (divisor)

17 ÷ 5 = 3 remainder 2

So, q = 3 (quotient) and r = 2 (remainder)

We can verify: 17 = 5(3) + 2

Example 2: Express -23 divided by 7 using the Quotient Remainder Theorem.

Solution:

a = -23 (dividend)

b = 7 (divisor)

We need to find q and r such that -23 = 7q + r, where 0 ≤ r < 7

q = -4 (quotient)

r = 5 (remainder)

We can verify: -23 = 7(-4) + 5

-23 = -28 + 5

Example 3: Find the remainder when 100 is divided by 7.

Solution:

Using the division algorithm:

100 = 7q + r, where 0 ≤ r < 7

100 ÷ 7 = 14 remainder 2

So, q = 14 and r = 2

We can verify: 100 = 7(14) + 2

Example 4: Express 1001 divided by 13 using the Quotient Remainder Theorem.

Solution:

a = 1001 (dividend)

b = 13 (divisor)

1001 ÷ 13 = 77 remainder 0

So, q = 77 (quotient) and r = 0 (remainder)

We can verify: 1001 = 13(77) + 0

Example 5: Find the quotient and remainder when -45 is divided by 8.

Solution:

a = -45 (dividend)

b = 8 (divisor)

We need to find q and r such that -45 = 8q + r, where 0 ≤ r < 8

q = -6 (quotient)

r = 3 (remainder)

We can verify: -45 = 8(-6) + 3

-45 = -48 + 3

Example 6: Find the remainder when 2^10 is divided by 7.

Solution:

We need to calculate 2^10 first:

2^10 = 1024

Now, we divide 1024 by 7:

1024 = 7q + r, where 0 ≤ r < 7

1024 ÷ 7 = 146 remainder 2

So, q = 146 (quotient) and r = 2 (remainder)

We can verify: 1024 = 7(146) + 2

Example 7: Express 999 divided by 11 using the Quotient Remainder Theorem.

Solution:

a = 999 (dividend)

b = 11 (divisor)

999 ÷ 11 = 90 remainder 9

So, q = 90 (quotient) and r = 9 (remainder)

We can verify: 999 = 11(90) + 9

Example 8: Find the quotient and remainder when -137 is divided by 15.

Solution:

a = -137 (dividend)

b = 15 (divisor)

We need to find q and r such that -137 = 15q + r, where 0 ≤ r < 15

q = -10 (quotient)

r = 13 (remainder)

We can verify: -137 = 15(-10) + 13

-137 = -150 + 13

Example 9: If a number leaves a remainder of 3 when divided by 7, what remainder will it leave when divided by 14?

Solution:

Let the number be 7q + 3, where q is some integer.

Now, let's divide this number by 14:

(7q + 3) = 14(q/2) + r, where 0 ≤ r < 14

If q is even, then r = 3

If q is odd, then r = 10

So, the remainder when divided by 14 will be either 3 or 10.

Example 10: Find the remainder when 3^100 is divided by 7.

Solution:

This is a more complex problem that requires understanding of modular arithmetic. We can use Euler's theorem here.

First, we note that 3 and 7 are coprime.

φ(7) = 6 (Euler's totient function)

By Euler's theorem: 3^6 ≡ 1 (mod 7)

Now, 100 = 16 * 6 + 4

So, 3^100 = (3^6)^16 * 3^4 ≡ 1^16 * 3^4 (mod 7) ≡ 3^4 (mod 7)

3^4 = 81 ≡ 4 (mod 7)

Therefore, the remainder when 3^100 is divided by 7 is 4.

Practice Problems on Quotient Remainder Theorem

1. Find the remainder when 1785 is divided by 19.

2. What is the smallest positive integer that leaves remainders of 2, 3, and 4 when divided by 3, 5, and 7 respectively?

3. If a number N leaves a remainder of 1 when divided by 2, 3, 4, 5, and 6, what is the smallest possible value of N?

4. Find the last two digits of 71000

5. What is the remainder when 22024 + 32024 + 52024 is divided by 7?

6. Find a number between 1000 and 2000 that leaves a remainder of 1 when divided by 7, a remainder of 2 when divided by 8, and a remainder of 3 when divided by 9.

7. What is the remainder when the sum of the first 1000 positive integers is divided by 7?

8. Find the value of n for which 11n + 5 leaves the same remainder as 7n + 15 when divided by 13.

9. If 7n ≡ 4 (mod 11), what is the smallest positive value of n?

10. Find the remainder when 123456789 is raised to the power of 987654321 and then divided by 10.

People Also Read:

  • Remainder Theorem | Definition, Formula, Proof
  • Modular Arithmetic
  • Factor Theorem - Formula, Proof

Conclusion - Quotient Remainder Theorem

The Quotient Remainder Theorem is a fundamental concept in arithmetic, providing a clear and systematic way to understand division. Its applications in modular arithmetic, computer algorithms, number theory, and digital signal processing highlight its importance in various fields. Understanding and applying this theorem is essential for solving problems involving division and remainders.


Next Article
Quotient Remainder Theorem

P

pp_pankaj
Improve
Article Tags :
  • Engineering Mathematics
  • GATE CS
  • Mathematics
  • Modular Arithmetic
Practice Tags :
  • Modular Arithmetic

Similar Reads

    Remainder Theorem
    The Remainder Theorem is a simple yet powerful tool in algebra that helps you quickly find the remainder when dividing a polynomial by a linear polynomial, such as (x - a). Instead of performing long or synthetic division, you can use this theorem to substitute the polynomial and get the remainder d
    8 min read
    Chinese Remainder Theorem
    Chinese Remainder Theorem is a mathematical principle that solves systems of modular equations by finding a unique solution from the remainder of the division. It is used in cryptography and computer science for efficient computation.According to the Theorem, if in a given set of equations, each equ
    10 min read
    Remainder When Divided by 3
    The Remainder Rule for 3 is a simple way to find the remainder when a number is divided by 3.Essentially, the remainder when a number is divided by 3 is the same as the remainder of the sum of its digits when divided by 3.While dividing any number by 3 the only possible remainders are 0, 1, 2. For E
    4 min read
    Remainder When Divided by 2
    To find the remainder when a number is divided by 2, you can simply check if the number is even or odd:If the number is even, the remainder when divided by 2 is 0.Any number ending with 0, 2, 4, 6 or 8 is even.If the number is odd, the remainder when divided by 2 is 1.Any number ending with 1, 3, 5,
    1 min read
    Remainder When Dividing by 5
    The Remainder Rule for 5 is a simple way to find the remainder when divided by 5.Essentially, the remainder when a number is divided by 5 is the same as the remainder when the last digit of the number is divided by 5.The last digit dictates the remainder when dividing by 5, as shown in the table bel
    3 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences