Test integer divisibility, compute quotient/remainder, discover all positive divisors, divisor count, primality status, and prime factorization.
Check if a number (dividend) is exactly divisible by another (divisor). Displays quotient, remainder, and whether it divides evenly.
Enter any positive integer to get all positive divisors, total divisor count, primality status, and prime factorization with exponents.
Divisibility is a cornerstone of elementary number theory. An integer a is divisible by an integer b (b ≠ 0) if there exists an integer k such that a = b × k. In other words, the remainder of a ÷ b is zero. The concept drives everything from fraction simplification to cryptography algorithms like RSA. Our calculator handles positive and negative integers for divisibility checks, while the divisor finder works for positive integers up to the safe JavaScript integer limit (253-1), but recommended for numbers ≤ 107 for optimal performance.
Modulo operation (%) is essential in hash functions, cyclic redundancy checks, and loop scheduling.
Divisibility rules (2,3,5,9,11) empower students to perform mental math and prime factorization.
Prime numbers and divisibility properties form the basis of RSA, Diffie-Hellman key exchange.
Divisibility Test: For given integers a and b, compute quotient q = floor(a / b) using integer division, and remainder r = a - q*b. If r = 0, then a is divisible by b. Our calculator uses precise floating-point handling with tolerance to avoid precision errors.
Divisor enumeration: For integer n > 0, we iterate i from 1 to √n. If i divides n, both i and n/i are recorded. Sorting ensures a complete list. Complexity O(√n) – efficient for numbers up to millions.
Prime factorization: We decompose n by trial division using primes up to √n; the result is expressed as product of prime powers, e.g., 360 = 2³ × 3² × 5¹.
A logistics company needs to pack 1,440 identical items into boxes. Each box must contain the same number of items, and no item should remain unpacked. What are the possible box capacities? Using the divisor finder: 1,440 has 36 divisors, meaning 36 different box sizes are possible (e.g., 12, 15, 24, 30, 32, 36, 40…). This demonstrates how divisibility informs inventory management and manufacturing.
| Number n | Divisor Count | Prime? | Prime Factorization |
|---|---|---|---|
| 6 | No | 2² × 7 | |
| 97 | 2 | Yes | Prime |
| 1000 | 16 | No | 2³ × 5³ |
| 360 | 24 | No | 2³ × 3² × 5 |
| 2 | 2 | Yes | Prime |