For each positive integer , the positive elements of form an infinite set, and the preceding increasing enumeration gives a bijection on these positive elements. The positive integers have a unique decomposition with , so these sets are disjoint and exhaust the positive integers.
The printed natural numbers include . The trailing-zero count of the representation of is not needed: shift the positive partition down by one and put
Uniqueness of the trailing-zero count proves the injective function property, and the decomposition of proves the surjective function property. An explicit decimal trailing-zero pairing function, using the increasing enumeration from the previous part, is
Indeed, the bracket enumerates , exactly the positive integers not divisible by . This handles both the positive index and the element without silently changing the PDF's convention.
To enumerate the rational numbers, first enumerate the integers by , , for . The function maps onto , and composing with gives a surjective function from . Choosing the first index representing each rational number gives an injective function . Thus is countably infinite; its infinitude follows because it contains all integers.