For , write . A set is finite when or there is a bijection from onto for some ; this is unique (Theorem 2.2) and is the cardinality of , written (with ).
Examples
Example 2.6 (Finiteness is essential)
On a finite set, Proposition 2.5 is a powerful shortcut: any injective map from to itself is automatically a permutation of — half of bijectivity comes for free. Both implications collapse on infinite sets: is injective from to but misses , and the map sending and for is surjective but not injective. Whenever this proposition is invoked, the finiteness hypothesis is doing real work — a theme that the weekend problem of Chapter 1 explores from the other side, where infinite sets are precisely those admitting such self-maps.
Example 2.7 (Half the work, for free)
Consider the map on sending to the remainder of upon division by ; its table of values is
Is a bijection? Injectivity alone suffices (Proposition 2.5): if and have the same remainder, divides , and since is prime and does not divide , it divides (Euclid’s lemma, used at High School level here and proved in Chapter 6); with this forces . Surjectivity comes free — no need to solve for each , though the table confirms every value appears exactly once. The shortcut is a workhorse: it proves the invertibility of modular multiplication (Chapter 6), powers the pairing in Wilson’s theorem, and returns in linear algebra as “an endomorphism of a finite-dimensional space is injective iff surjective” (Chapter 19).
Example 2.17
Two classical specializations: recovers ; , gives for : among the subsets of a nonempty set, exactly half have even cardinality.