Blog

Showing 1–12 of 28 posts

The division algorithm a equals bq plus r with the bound 0 is less than or equal to r which is less than the absolute value of b, worked as 47 equals 6 times 7 plus 5
Arithmetic

Euclidean Division Algorithm Explained: a = bq + r With Examples

The division algorithm says every pair of integers gives unique q and r with a = bq + r and 0 <= r < |b|. Why they exist, why they are unique, and negative cases.

Read More →
A practice sheet of 48 graded division questions across three levels, with the check that divisor times quotient plus remainder equals the dividend
Arithmetic

Division With Remainders Practice Problems With Answers

48 graded division with remainders exercises across three levels, with a complete answer key, worked solutions for the hard ones and a self-check method.

Read More →
The division chain for 252 and 198 giving gcd 18, beside the Bezout identity 4 times 252 minus 5 times 198 equals 18
Modular Arithmetic

Extended Euclidean Algorithm: GCD, Bézout Coefficients & Modular Inverses

The extended Euclidean algorithm finds x and y with ax + by = gcd(a, b). Both methods worked step by step, the table shortcut, pseudocode and 8 practice problems.

Read More →
A polynomial long division layout dividing a quartic by a quadratic and leaving the remainder 7x minus 3
Algebra

Polynomial Long Division With Remainders: Complete Guide

Divide polynomials by any divisor using long division. The divide-multiply-subtract-bring down cycle, placeholder zeros, quadratic divisors and 8 practice problems.

Read More →
Python code calling divmod of 17 and 5 to get the quotient 3 and remainder 2, and divmod of negative 7 and 3 returning the pair negative 3 and 2
Programming

Python divmod(): Get Quotient and Remainder With Examples

divmod(a, b) returns the quotient and remainder as one tuple. Syntax, unpacking, negative operands, float behaviour and when to use it instead of // and %.

Read More →
The long division of 43 by 8 continued past the decimal point through the remainders 30, 24, 60, 56 and 40 to reach 5.375
Arithmetic

Remainders as Decimals: How to Continue Division After a Remainder

Turn a remainder into a decimal by adding a point and bringing down zeros. Worked long divisions, terminating vs repeating decimals, and how to spot which you get.

Read More →
47 divided by 5 giving 9 remainder 2, relabelled as the mixed number 9 and two fifths with the quotient, remainder and divisor named
Arithmetic

Remainders as Fractions: How to Convert a Remainder Into a Fraction

Turn a remainder into a fraction by writing it over the divisor. The mixed number rule, when to simplify, improper fractions and 10 practice questions with answers.

Read More →
A repeated squaring table computing 7 to the power 13 modulo 11 as 2, using the binary exponent 1101
Modular Arithmetic

Modular Exponentiation: How to Calculate a^b mod n Efficiently

Compute a^b mod n without ever forming a^b. Reduce as you go, then use repeated squaring and the binary exponent, with full step tables and pseudocode.

Read More →
3 times 7 equals 21 which is congruent to 1 modulo 20, so the inverse of 3 is 7, beside a table of every inverse modulo 11
Modular Arithmetic

Modular Inverse Explained: How to Find an Inverse Modulo n

A modular inverse of a is the x with ax = 1 (mod n). When it exists, four ways to find it, an inverse table mod 11, and how to solve congruences with it.

Read More →
Three congruences modulo 5, 7 and 9 combining into the single solution x congruent to 157 modulo 315
Modular Arithmetic

Chinese Remainder Theorem: Step-by-Step Examples and Solutions

Solve systems of congruences with the Chinese Remainder Theorem. The sieve, substitution and construction methods, worked step by step, plus non-coprime cases.

Read More →
A clock face showing 8 hours after 9 o'clock landing on 5, because 17 is congruent to 5 modulo 12 and 17 equals 12 times 1 plus 5
Modular Arithmetic

Modular Arithmetic Explained: Congruences, Rules & Examples

Modular arithmetic works with remainders instead of whole numbers. Congruence notation, residue classes, the rules for adding, multiplying and taking powers mod n.

Read More →
A spreadsheet with the formula =MOD(A2, B2) returning the remainder for 23 by 5, 100 by 7, 12 by 4 and 7.5 by 2
Programming

Excel MOD Function: How to Find the Remainder in Excel

MOD(number, divisor) returns the remainder in Excel and takes the sign of the divisor. Syntax, cell references, negative values, every nth row and MOD vs QUOTIENT.

Read More →