Modular Arithmetic

MATH1061

Notes

Floor and Ceiling

Definition: Given any , the floor of , denoted , is the unique integer such that

Definition: Given any , the ceiling of , denoted , is the unique integer such that .

Examples

Prove the following statements or give a counterexample.

Counterexample: Take and . Then and , so

Thus, the statement is false.

Counterexample: Take and . Then So

Thus, the statement is false.

The Quotient Remainder Theorem

Given any integer and a positive integer , there exists unique integers and such that and .

is called the quotient and is called the remainder. Note that

Definition: For integers and , and a positive integer , we can say that is congruent to modulo and write:

if and only if

Note