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:
Divisibility Rule of 7 with Examples
Next article icon

Divisibility Rule of 7 with Examples

Last Updated : 27 Nov, 2024
Comments
Improve
Suggest changes
Like Article
Like
Report

Divisibility rules are simple mathematical shortcuts that help determine whether a number can be divided by another number without performing the actual division. In the case of 7, the divisibility rule for 7 helps us quickly determine if a number is divisible by 7 without needing to perform long division.

Divisibility Rule of 7:

  • Take the last digit (unit digit) of the number and double it.
  • Subtract this doubled value from the rest of the digits in the number.
  • Check the result: If the difference is divisible by 7 (or is 0), then the original number is divisible by 7.

More Examples on Divisibility by 7 Rule

Here are a few examples of numbers divisible by 7, applying the divisibility rule:

For 196:

  • Take the last digit (6), and double it to get 12.
  • Subtract 12 from 19 (remaining digits): 19 − 12 = 7.
  • Since 7 is divisible by 7, 196 is divisible by 7.

For 357:

  • Double the last digit (7) to get 14.
  • Subtract 14 from 35: 35 − 14 = 21.
  • Since 21 is divisible by 7, 357 is divisible by 7.

Divisibility Rule of 7 Proof

A general number N can be written as:

N = 10^n a_n + 10^{n-1} a_{n-1} + \cdots + 10 a_1 + a_0

Here, a_n, a_{n-1}, \dots, a_1, a_0​ are the digits of the number. We want to show that N is divisible by 7, i.e., N = 7k for some integer k.

We can factor out 10 from all terms except the last one, giving:

N = 10 \left( 10^{n-1} a_n + 10^{n-2} a_{n-1} + \cdots + 10 a_2 + a_1 \right) + a_0

Now, to introduce the rule of subtracting twice the last digit, we add and subtract 20 a_0

N = 10 \left( 10^{n-1} a_n + 10^{n-2} a_{n-1} + \cdots + 10 a_2 + a_1 \right) + 20 a_0 - 20 a_0 + a_0

This simplifies to:

N = 10 \left( 10^{n-1} a_n + 10^{n-2} a_{n-1} + \cdots + 10 a_2 + a_1 - 2 a_0 \right) + 21 a_0

Now, notice that:

  • 21 \equiv 0 \mod 7 so the term 21 a_0​ contributes nothing to the remainder modulo 7.
  • We only need to check whether 10 \left( 10^{n-1} a_n + 10^{n-2} a_{n-1} + \cdots + a_1 - 2 a_0 \right) \equiv 0 \mod 7

10 (\overline{a_na_{n-1}......a_2a_1} - 2a_0) \equiv 0 (mod 7)

since 10 ≡ 3 (mod 7), for N to be divisible by 7, \overline{a_na_{n-1}......a_2a_1} - 2a_0) \equiv 0 (mod 7)

Divisibility Rule of 7 Solved Questions

Example 1: Check if the given number is divisible by 7 or not: 458409

Solution: 

Let us check if the given number, 458409 is divisible by 7 or not using the following steps:

  • Step 1: We first take the last digit and multiply it by 2. So,(9 × 2 = 18).
    Subtract 18 with the rest of the number, which is 45840. So, 45840 - 18 = 45822.
    We are not sure if 45822 is a multiple of 7.
  • Step 2: We repeat the same process again with 45822.
    Multiply the last digit by 2. So, (2 × 2 = 4).
    Subtract 4 with the rest of the number, which is 4582. So, 4582 - 4 = 4578.
    We are not sure if 4578 is a multiple of 7.
  • Step 3: Let us repeat the process again with 4578.
    Multiply the last digit by 2. So, (8 × 2 = 16).
    Subtract 16 with the rest of the number, which is 457. So, 457 - 16 = 441.
    We are not sure if 441 is a multiple of 7.
  • Step 4: Let us repeat the process again with 441.
    Multiply the last digit by 2. So, (1 × 2 = 2).
    Subtract 2 with the rest of the number, which is 44. So, 44 - 2 = 42.
    42 is the sixth multiple of 7.

Therefore, we can confirm that 458409 is divisible by 7.

Example 2: Is 154 divisible by 7?

Solution:

The last digit in the given number 15 4 (unit digit ) is 4.

We now use the given number without the last digit which is 15.

Subtract twice the last digit 4 from 15:
15 - 2 (4) = 15 - 8 = 7

The result 7 is a multiple of 7 and therefore 154 is divisible by 7.

Example 3: Consider the number: 308. Check if it is divisible by 7.

Solution:

Following the rule:

Double of the last digit =16
Subtracting the result from the rest of the number; 30-16 =14

14 is a multiple of 7, hence the number is divisible by 7.

Example 4: Which of the following numbers is divisible by 7?

  1. 171
  2. 119
  3. 107
  4. 383

Solution:

The correct answer is option (b) 119.

Explanation:

(a) 171

Step 1: Double the unit digit = 1 x 2 = 2
Step 2: Difference = 17 – 2 = 15

15 is not a multiple of 7, and hence 171 is not divisible by 7.

(b) 119

Step 1: Double the unit digit = 9 x 2 = 18
Step 2: Difference = 11 – 18 = -7, which is a multiple of 7

Hence, 119 is divisible by 7.

(c) 107

Step 1: Double the unit digit = 7 x 2 = 14
Step 2: Difference = 10 – 14 = -4, which is not a multiple of 7.

Hence, 107 is not divisible by 7.

(d) 383

Step 1: Double the unit digit = 3 x 2 = 6
Step 2: Difference = 38 – 6 = 32, which is not a multiple of 7.

Thus, 383 is not divisible by 7.

Example 5: Check whether a number 449 is divisible by 7.

Solution:

Given number = 449.

To check whether a number 449 is divisible by 7, follow the below steps.

Step 1: Double the unit digit = 9 x 2 = 18
Step 2: Take the difference between the remaining part of the given number and the result obtained from step 1. (i.e., 18)
= 44 – 18
= 26, which is not a multiple of 7.

Hence, the given number 449 is not divisible by 7.

Divisibility Rule of 7 Worksheet

1. Determine whether the number 203 is divisible by 7.

2. Is the number 1,218 divisible by 7? Show your calculation.

3. Find out if 5,643 is divisible by 7 using the divisibility rule.

4. Check if 2,118 is divisible by 7 and explain your reasoning.

5. Use the divisibility rule to determine if 9,374 is divisible by 7.

Conclusion

In this article, we discovered the method for determining if a number is divisible by 7 and the rule for divisibility by 7 is an important guideline that applies to all numbers. When divided by 7 there should be no remainder left after the division. This holds true because whenever we divide a number by 7 the outcome is consistently an even number. Keep practicing this divisibility rule to get a better grasp at the concept.

Read More:

  • Divisibility Rule by 3
  • Divisibility Rule by 5
  • Divisibility Rule by 8
  • Divisibility Rule by 13

Next Article
Divisibility Rule of 7 with Examples

A

amitabhgarg
Improve
Article Tags :
  • Mathematics
  • School Learning
  • Maths
  • Arithmetic

Similar Reads

    Divisibility Rule of 6 with Examples
    Divisibility rules enable us to easily determine if a number can be divided evenly by another without performing long division. According to the divisibility rule of 6, a number is divisible by 6 if it is divisible by both 2 and 3. For Example: To Check if 138 is divisible by 6.Check divisibility by
    4 min read
    Divisibility Rule of 2 with Examples
    Divisibility rules are like tricks that help us determine whether one number can be divided by another without going through the actual division process. They simplify the process of checking if a number is divisible making it more convenient especially when working with larger numbers.Divisibility
    6 min read
    Divisibility Rule of 8 with Examples
    Divisibility rules can simplify complex calculations and problem-solving. This guide describes the specific rule for divisibility by 8, providing clear explanations and practical examples. Divisibility Rule of 8 states that a number is divisible by 8 if the last three digits of the number form a num
    5 min read
    Divisibility Rule of 10 with Examples
    The Divisibility rule for 10 is one of the simplest rules in mathematics. It helps determine whether a number is divisible by 10 without performing the actual division.Divisibility Rule for 10 A number is divisible by 10 if its last digit is 0. This rule works because 10 is a base of our number syst
    4 min read
    Divisibility Rule of 13 with Examples
    The divisibility rule of 13 helps us know the given number that should be divisible by 13. Let's learn about those rules and how to apply them.The Divisibility rule of 13 is explained in detail in the image below. For Example: Let’s take the number 273.Last digit = 3Remove the last digit from the nu
    8 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