Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools

Arithmetic

📚5Total Topics
📂4Categories
22Quick Access
📄22Content Sections
🔗13Subtopics

Topics


|

Divisibility

When and why one integer divides another exactly

An integer aa divides an integer bb when b=akb = a \cdot k for some integer kk, with no remainder. The notation aba \mid b is a statement — true or false — not an operation. Every nonzero integer divides itself, 11 divides everything, and every nonzero integer divides 00. Divisibility is transitive: if aba \mid b and bcb \mid c, then aca \mid c. It distributes over addition and subtraction and scales with multiplication. The division algorithm connects divisibility to remainders — when the remainder vanishes, the division is exact. This section covers factors and multiples, prime numbers and prime factorization, the greatest common divisor, the least common multiple, and the divisibility rules that test these relationships at a glance.
|

Factors & Multiples

The finite set of divisors and the infinite chain of multiples

Every divisibility relationship names two roles. When aba \mid b, the number aa is a factor of bb, and bb is a multiple of aa. The factors of a number are finite — 2424 has exactly eight: 1,2,3,4,6,8,12,241, 2, 3, 4, 6, 8, 12, 24. The multiples are infinite — the multiples of 33 extend as 3,6,9,12,3, 6, 9, 12, \ldots without end. Factors come in pairs: if aa divides nn, then n/an/a also divides nn. Searching up to n\sqrt{n} is sufficient to find every factor, since each one above the square root is paired with one below it.
|

GCD — Greatest Common Divisor

The largest factor shared by two or more integers

The GCD of two integers is the largest number that divides both. For 4848 and 3636, the common divisors are 1,2,3,4,6,121, 2, 3, 4, 6, 12, and the greatest is 1212. Three methods compute it: listing all factors and selecting the largest shared one, extracting GCD from prime factorizations by taking the minimum exponent of each shared prime, and the Euclidean algorithm — which applies modulo repeatedly until the remainder reaches zero. The last nonzero remainder is the GCD. The Euclidean algorithm is the fastest: gcd(252,105)\gcd(252, 105) reduces via 252=1052+42252 = 105 \cdot 2 + 42, then 105=422+21105 = 42 \cdot 2 + 21, then 42=212+042 = 21 \cdot 2 + 0, giving gcd=21\gcd = 21. Two numbers with gcd=1\gcd = 1 are coprime — they share no prime factors.
|

LCM — Least Common Multiple

The smallest number that both integers divide into

The LCM of two integers is the smallest positive integer that both divide into evenly. For 44 and 66: multiples of 44 are 4,8,12,16,4, 8, 12, 16, \ldots; multiples of 66 are 6,12,18,6, 12, 18, \ldots; the first overlap is 1212, so lcm(4,6)=12\text{lcm}(4,6) = 12. Computation methods mirror GCD: list multiples, use prime factorizations (take the maximum exponent of each prime), or use the identity ab=gcd(a,b)lcm(a,b)a \cdot b = \gcd(a,b) \cdot \text{lcm}(a,b) to derive LCM from GCD. When two numbers are coprime, their LCM is simply their product. When one divides the other, the LCM is the larger number. LCM extends to three or more numbers by iterating pairwise.
|

Divisibility Rules

Digit-pattern shortcuts for testing divisibility by 2 through 11

Testing whether one number divides another does not always require performing the full division. For certain common divisors, patterns in the decimal digits give instant answers. Divisible by 22 if the last digit is even. By 33 if the digit sum is divisible by 33. By 44 if the last two digits form a number divisible by 44. By 55 if the last digit is 00 or 55. By 66 if divisible by both 22 and 33. By 88 if the last three digits form a number divisible by 88. By 99 if the digit sum is divisible by 99. By 1010 if the last digit is 00. By 1111 if the alternating sum of digits is divisible by 1111. Each rule exploits the structure of base-1010 place value and modular arithmetic.

Fractions

Parts of a whole — definition, types, and operations

A fraction ab\frac{a}{b} expresses a quantity as a ratio of two integers — the numerator aa counts parts taken, the denominator bb names the size of each part. Fractions are classified as proper (numerator less than denominator, value less than one), improper (numerator greater than or equal to denominator, value one or more), or unit fractions (numerator of exactly one). Every fraction ab\frac{a}{b} equals aa copies of the unit fraction 1b\frac{1}{b}. Equivalent fractions represent the same value in different forms: 12\frac{1}{2}, 24\frac{2}{4}, 36\frac{3}{6} are all the same quantity. Operations on fractions — adding, subtracting, multiplying, dividing, and comparing — each follow specific rules covered in the sub-pages below.

Adding & Subtracting Fractions

Common denominators, mixed numbers, and whole-number combinations

Adding fractions with the same denominator is direct: combine the numerators and keep the denominator. 27+37=57\frac{2}{7} + \frac{3}{7} = \frac{5}{7}. When denominators differ, each fraction must first be converted to an equivalent fraction with a shared denominator — typically the least common multiple of the two denominators. Adding mixed numbers requires handling the whole-number parts and fractional parts separately, with possible regrouping. Subtraction follows the same rules but may require borrowing from the whole-number part. Common mistakes include adding denominators together or forgetting to simplify the result.

Multiplying Fractions

Numerator times numerator, denominator times denominator

Multiplication follows a direct rule: multiply numerators together and denominators together. 23×45=815\frac{2}{3} \times \frac{4}{5} = \frac{8}{15}. No common denominator is needed. Cross-canceling before multiplying — dividing a numerator and a denominator by their common factor — keeps numbers small and avoids simplifying at the end. Multiplying mixed numbers requires converting to improper fractions first. The word "of" in math often means multiply: 23\frac{2}{3} of 1515 means 23×15=10\frac{2}{3} \times 15 = 10.

Dividing Fractions

Keep, change, flip — multiply by the reciprocal

Dividing by a fraction is equivalent to multiplying by its reciprocal. To compute 23÷45\frac{2}{3} \div \frac{4}{5}, flip the second fraction and multiply: 23×54=1012=56\frac{2}{3} \times \frac{5}{4} = \frac{10}{12} = \frac{5}{6}. The reciprocal of ab\frac{a}{b} is ba\frac{b}{a}. Dividing a fraction by a whole number means multiplying by 1n\frac{1}{n}. Dividing a whole number by a fraction means multiplying the whole number by the reciprocal. Mixed numbers must be converted to improper fractions before dividing. Cross-canceling applies here just as in multiplication.

Comparing Fractions

Common denominators, cross-multiplication, benchmarks, and decimals

Determining which fraction is larger uses several methods. Same-denominator fractions compare directly by numerator. Same-numerator fractions compare inversely by denominator — larger denominator means smaller pieces. The common-denominator method converts both fractions to the same denominator and compares numerators. Cross-multiplication compares ada \cdot d with bcb \cdot c for ab\frac{a}{b} vs cd\frac{c}{d}. Benchmark fractions like 12\frac{1}{2} provide quick reference points. Decimal conversion gives exact comparison. Mixed numbers compare whole parts first, then fractional parts.

Equivalent Fractions

Same value, different numerator and denominator

Equivalent fractions represent the same quantity. Multiplying or dividing both numerator and denominator by the same nonzero number produces an equivalent fraction: 12=24=36=50100\frac{1}{2} = \frac{2}{4} = \frac{3}{6} = \frac{50}{100}. Simplifying a fraction means dividing numerator and denominator by their GCD to reach the simplest form. A fraction is in simplest form when the GCD of its numerator and denominator is 11. Testing equivalence: ab=cd\frac{a}{b} = \frac{c}{d} if and only if ad=bca \cdot d = b \cdot c. Finding common denominators for addition and subtraction is fundamentally about creating equivalent fractions.

Mixed Numbers

Whole parts combined with fractional parts

A mixed number like 2342\frac{3}{4} combines a whole number with a proper fraction. Converting to an improper fraction: multiply the whole number by the denominator, add the numerator, place over the original denominator — 234=1142\frac{3}{4} = \frac{11}{4}. Converting back: divide numerator by denominator — quotient becomes the whole part, remainder becomes the new numerator. Mixed numbers are intuitive for expressing measurements and quantities greater than one, while improper fractions are essential for computation.

Complex Fractions

Fractions within fractions — two methods for simplifying

A complex fraction contains fractions in its numerator, denominator, or both — like 1234\frac{\frac{1}{2}}{\frac{3}{4}}. Two simplification methods exist. Method 1 (division): treat the main fraction bar as division and multiply by the reciprocal of the denominator. Method 2 (LCD): multiply both the numerator and denominator by the LCD of all inner fractions, clearing them in one step. Complex fractions with sums or differences in the numerator or denominator require combining those parts first. Nested complex fractions — fractions within fractions within fractions — simplify from the inside out.
%

Modulo

Remainders, congruence, and cyclic arithmetic

The modulo operation takes two integers and returns the remainder of their division. The expression 17mod5=217 \bmod 5 = 2 because 17=53+217 = 5 \cdot 3 + 2. For a fixed divisor nn, the remainder is always in {0,1,,n1}\{0, 1, \ldots, n-1\} — modulo compresses the entire number line into a finite set that repeats in cycles. When two integers share the same remainder, they are congruent modulo nn: 175(mod12)17 \equiv 5 \pmod{12} because both leave remainder 55. Congruence is an equivalence relation — reflexive, symmetric, transitive — that partitions the integers into congruence classes. The clock is the most familiar example: 15:0015{:}00 and 3:003{:}00 are the same position because 153(mod12)15 \equiv 3 \pmod{12}.
%

Modular Arithmetic

Addition, subtraction, multiplication, and powers under a modulus

Modular arithmetic builds a self-contained system where operations stay within a fixed set of remainders. Addition: (a+b)modn=((amodn)+(bmodn))modn(a + b) \bmod n = ((a \bmod n) + (b \bmod n)) \bmod n. The same pattern holds for subtraction and multiplication — reduce first, operate, reduce again. Powers use repeated squaring to handle large exponents efficiently. Division is different: it requires modular inverses and does not always exist. Applications include last-digit problems (nmod10n \bmod 10), clock arithmetic (nmod12n \bmod 12), day-of-week calculations (nmod7n \bmod 7), and the modular proofs behind every divisibility rule for 33, 99, and 1111.
%

Modulo with Negative Numbers

Two conventions, different answers, language-specific behavior

When the dividend is negative, the meaning of "remainder" splits. The expression (7)mod3(-7) \bmod 3 equals 1-1 under truncated division (round quotient toward zero) and 22 under floored division (round quotient toward -\infty). Both satisfy a=nq+ra = n \cdot q + r; they differ in how qq is rounded. C, Java, and JavaScript use truncated division. Python and Ruby use floored division. Neither convention is wrong — they answer slightly different questions. Converting between them: if the truncated remainder is negative, add the modulus to get the floored remainder. From a congruence perspective, 1-1 and 22 are both valid representatives of the same congruence class modulo 33.
=

GCF Calculator

Find the greatest common factor of 2–6 numbers

Calculate GCF using the Euclidean algorithm or prime factorization. Supports up to 6 numbers with step-by-step explanations of how each method arrives at the answer.
=

LCM Calculator

Compute the least common multiple instantly

Find the LCM of 2–6 numbers using prime factorization or the GCD formula. Dynamic input fields and visual explanations show the computation process.
=

Divisibility Calculator

Test divisibility rules and check remainders

Two modes: single divisor for specific tests, or common divisors to test 2,3,4,5,6,8,9,10,122, 3, 4, 5, 6, 8, 9, 10, 12 at once. Color-coded results show divisibility status, quotients, and remainders.
=

Prime Number Checker

Test whether a number is prime or composite

Quick check mode for instant primality testing, or detailed mode to view all factors. Efficient algorithm handles numbers up to millions.
#

Divisibility Table

Interactive table showing divisibility relationships

Visual grid displaying which numbers divide which, revealing patterns in factor relationships across a range of integers.
#

Divisibility Tree

Factor tree diagrams for prime factorization

Interactive tree visualization that breaks numbers down into their prime factors step by step, showing the branching structure of factorization.