Even and Odd Integers; Divisibility
Learning objectives
- Determine if an integer is even or odd
- Apply divisibility rules
- Prove basic properties of even and odd numbers
Parity is the smallest fact in mathematics that pays off the most often. Whether a number is even or odd is a single bit of information, but that one bit decides whether equations are solvable, whether games can be won, whether is rational (it is not, and the proof is one parity argument). Divisibility is the same idea sharpened: instead of asking "is this a multiple of 2?" we ask "is this a multiple of ?" for any we like.
Definitions you can prove things with
An integer is even if it can be written as for some integer . It is odd if it can be written as . These are not visual descriptions — they are algebraic forms, and that is what makes them useful for proofs. To show that the sum of two odd numbers is even, write the odds as and , add them: . The result has the form . Done.
The parity table
Memorise the rules, then forget them — the proofs above (and below for multiplication) recover any rule in a few seconds from the and definitions.
(Set the modulus to 2 in the widget above and type an integer — the clock face shows even (0) and odd (1) as two halves, and the hand sweeps to the right one. Change the modulus to 3, 5, or 12 to see divisibility by other numbers the same way.)
Divisibility: a generalised parity
We say divides , written , if there exists an integer with . Examples: because ; because ; but because no integer gives .
Divisibility behaves the way you would hope: if and , then also divides every "linear combination" . And divisibility is transitive: and together force . (When we call a divisor of .)
The division algorithm — the engine
For any integers and with , there exist unique integers (the quotient) and (the remainder) such that with . Every divisibility statement, every congruence-class argument, every modular-arithmetic identity that you will ever meet rests on this one theorem.
Try it
- Write the form for the odd numbers . What is in each case?
- Prove from the form that the square of any even integer is divisible by .
- Apply the division algorithm to , : find the unique with .
- Is ? Is ? Why is divisibility not symmetric?
Try it in code
A trap to watch for
It is tempting to reverse the linear-combination rule: if , surely and ? The converse is false. Try , , : then and , but . The brain makes the mistake because addition feels symmetric — if a factor "survives" the sum, it must have been present in each piece. It need not. The correct one-way statement: and together force for any integers , but a divisor of the sum tells you nothing about the parts. The fix: before splitting a divisibility statement across an addition, write out the actual integer quotients explicitly.
What you now know
You can classify integers by parity and divisibility using algebraic forms (not visual hunches), and you can use the division algorithm to convert any divisibility question into a clean arithmetic test. The next section moves beyond to the rational numbers , where division stops failing and the four laws keep working.
Quick check
References
- Lang, S. (1971). Basic Mathematics. Springer. Chapter 1, §4 — even / odd / divisibility framed as the first step into number theory.
- Hardy, G. H. and Wright, E. M. (2008). An Introduction to the Theory of Numbers, 6th ed. Oxford. Chapter 2 — the division algorithm proved cleanly with the well-ordering principle.
- Niven, I., Zuckerman, H., and Montgomery, H. (1991). An Introduction to the Theory of Numbers, 5th ed. Wiley. Chapter 1 — divisibility, GCD, and the Euclidean algorithm.