Divisibility Test Calculator
Divisibility Checker
Divisibility Rules Summary Chart (for Number to Check)
What is a Divisibility Test Calculator?
A Divisibility Test Calculator is a tool used to determine if one integer is exactly divisible by another integer without leaving a remainder. Instead of performing long division, divisibility tests or rules provide shortcuts to check for divisibility, especially by small integers. Our Divisibility Test Calculator not only checks divisibility between two given numbers but also applies common divisibility rules to the first number against divisors from 2 to 11.
Anyone working with numbers, including students learning arithmetic, teachers, programmers, and mathematicians, can benefit from using a Divisibility Test Calculator. It’s useful for simplifying fractions, finding factors, and understanding number properties.
A common misconception is that you need to perform full division to check divisibility. While that’s true for any divisor, specific rules for small numbers (like 2, 3, 5, etc.) are much faster, and our Divisibility Test Calculator shows these.
Divisibility Rules and Mathematical Explanation
The fundamental mathematical operation to check if a number ‘a’ (dividend) is divisible by ‘b’ (divisor) is the modulo operation. If ‘a’ modulo ‘b’ equals 0 (a % b == 0), then ‘a’ is divisible by ‘b’. However, for certain divisors, we have faster rules:
- Divisibility by 2: A number is divisible by 2 if its last digit is even (0, 2, 4, 6, or 8).
- Divisibility by 3: A number is divisible by 3 if the sum of its digits is divisible by 3.
- Divisibility by 4: A number is divisible by 4 if the number formed by its last two digits is divisible by 4.
- Divisibility by 5: A number is divisible by 5 if its last digit is 0 or 5.
- Divisibility by 6: A number is divisible by 6 if it is divisible by both 2 and 3.
- Divisibility by 7: Double the last digit and subtract it from the remaining leading truncated number. If the result is divisible by 7, then the original number is divisible by 7 (this process can be repeated). For example, for 343, double 3 is 6, 34-6=28, which is divisible by 7, so 343 is.
- Divisibility by 8: A number is divisible by 8 if the number formed by its last three digits is divisible by 8.
- Divisibility by 9: A number is divisible by 9 if the sum of its digits is divisible by 9.
- Divisibility by 10: A number is divisible by 10 if its last digit is 0.
- Divisibility by 11: A number is divisible by 11 if the alternating sum of its digits (add first, subtract second, add third, etc.) is divisible by 11 (or is 0). For example, for 1331, 1-3+3-1 = 0, so it’s divisible by 11.
Variables Table
| Variable | Meaning | Unit | Typical Range |
|---|---|---|---|
| Number to Check | The dividend, the number being tested | Integer | Any integer |
| Divisor | The number we are dividing by | Integer | Any non-zero integer |
| Remainder | The leftover after division | Integer | 0 to |Divisor|-1 |
| Quotient | The result of the division | Integer | Any integer |
Our Divisibility Test Calculator applies these rules where applicable.
Practical Examples (Real-World Use Cases)
Example 1: Checking 150 for divisibility by 6
Using the Divisibility Test Calculator:
- Number to Check: 150
- Divisor: 6
- Result: 150 is divisible by 6 (150 % 6 = 0). It’s also even (divisible by 2) and the sum of digits 1+5+0=6 (divisible by 3).
- Quotient: 25, Remainder: 0
Example 2: Checking 347 for divisibility by 7
Using the Divisibility Test Calculator:
- Number to Check: 347
- Divisor: 7
- Rule for 7: Last digit is 7. 34 – (2*7) = 34 – 14 = 20. Is 20 divisible by 7? No. So 347 is not divisible by 7.
- Calculator Result: 347 is not divisible by 7.
- Quotient: 49, Remainder: 4
You can use the prime number checker to see if a number has other divisors.
How to Use This Divisibility Test Calculator
- Enter the Number to Check: Input the integer you want to test in the “Number to Check (Dividend)” field.
- Enter the Divisor: Input the integer you want to divide by in the “Divisor” field. Avoid entering 0 here.
- Calculate: Click the “Calculate” button or simply change the input values. The results will update automatically.
- Read Results: The primary result will clearly state if the number is divisible by the divisor. You’ll also see the quotient and remainder. Below that, the results for divisibility by 2 through 11 for the “Number to Check” are shown.
- Use the Chart: The bar chart visually represents the divisibility of the “Number to Check” by numbers 2-11.
Understanding the results helps in simplifying numbers and understanding their factors. For more on factors, see our factors of a number tool.
Key Factors That Affect Divisibility Results
- Last Digit(s): The last digit determines divisibility by 2, 5, and 10. The last two digits by 4, and last three by 8.
- Sum of Digits: The sum of the digits is crucial for divisibility by 3 and 9.
- Alternating Sum of Digits: This is used for the divisibility test by 11.
- Divisibility by 2 and 3 Simultaneously: This determines divisibility by 6.
- The Divisor Itself: Obviously, changing the divisor changes the divisibility result unless the dividend is 0 (which is divisible by all non-zero divisors). A modulo calculator can be useful here.
- The Specific Rule for 7: The iterative process of doubling the last digit and subtracting is unique to 7.
These factors are embedded in the divisibility rules that our Divisibility Test Calculator uses.
Frequently Asked Questions (FAQ)
- Q1: What is a divisibility rule?
- A1: A divisibility rule is a shorthand method for determining whether a given integer is divisible by a fixed divisor without performing the division, usually by examining its digits.
- Q2: Is 0 divisible by any number?
- A2: Yes, 0 is divisible by any non-zero integer, with a result of 0 and a remainder of 0.
- Q3: Can a number be divisible by 0?
- A3: No, division by zero is undefined. Our Divisibility Test Calculator will show an error if you enter 0 as the divisor.
- Q4: How do I check for divisibility by 6?
- A4: Check if the number is divisible by both 2 (it’s even) AND 3 (sum of digits is divisible by 3).
- Q5: What’s the quickest way to check divisibility by 9?
- A5: Sum the digits of the number. If the sum is divisible by 9, the original number is too. You can repeat this process on the sum.
- Q6: Does this calculator work for negative numbers?
- A6: Yes, the divisibility rules generally apply to negative numbers as well. If ‘a’ is divisible by ‘b’, then ‘-a’ is also divisible by ‘b’. The calculator handles integer inputs.
- Q7: Are there divisibility rules for numbers larger than 11?
- A7: Yes, there are rules for 13, 17, 19, etc., but they become more complex. For larger or composite numbers, it’s often easier to check divisibility by their prime factors or use the greatest common divisor calculator.
- Q8: What if I just want to know if a number is even or odd?
- A8: Check for divisibility by 2. If it’s divisible by 2, it’s even; otherwise, it’s odd. See our even or odd checker.
Related Tools and Internal Resources
- Prime Number Checker: Determine if a number is prime or composite.
- Greatest Common Divisor (GCD) Calculator: Find the largest number that divides two integers.
- Least Common Multiple (LCM) Calculator: Find the smallest number that is a multiple of two integers.
- Factors of a Number Calculator: List all factors of a given number.
- Modulo Calculator: Find the remainder of a division operation.
- Even or Odd Checker: Quickly check if a number is even or odd.