Are all rational numbers integers?

1 Answer
Aug 27, 2017

No, but all integers are rational numbers (that is, #ZZ sub QQ#).

Explanation:

The set of all integers, written as #ZZ#, is defined as the positive and negative counting numbers, along with 0:

#ZZ = {..., –2, –1, 0, 1, 2, ...}#

The set of all rational numbers, written as #QQ#, is defined as all numbers that can be expressed as the ratio of two integers, as long as the denominator is not zero:

#QQ={a/b | a,b in ZZ,"  "b != 0}#

From this, it is easy to see that a lot of rational numbers will be integers: as long as #b=+-1#, any #a# chosen will yield a rational number #a/b# that is also an integer. But for any #b !in {0, +-1}#, if #a# and #b# are co-prime, then #a/b# is a rational number but not an integer.

Bonus:

An interesting side note is that, while there are infinitely many rational numbers between any two consecutive integers #z# and #z+1#, both #ZZ# and #QQ# have the same cardinality—that is, there are just as many integers as there are rational numbers.

This is because it is possible to order the elements in each set, giving each element a position number (or ordinal number). In doing so, someone could ask for the element in any position (1st, 2nd, 478th, etc.) and we'd be able to retrieve the element in that position from both sets.