Rational Number
Elementary
A rational number is a number that can be written as a fraction of whole numbers, or the negative of one.
High school
A rational number is a number that can be written as $p/q$, where $p$ and $q$ are integers and $q \neq 0$.
Undergraduate
A rational number is an element of $\rationals$, constructed as equivalence classes of pairs $(p, q)$ of integers such that $q \neq 0$, where $(p, q) \sim (r, s)$ if $p s = q r$.
Examples
Examples
-
$\frac{1}{2}$ and $\frac{2}{4}$ represent the same rational number.
-
$1/2$ is a rational number because it can be written as a ratio of $1$ and $2$.
-
$2$ is rational number because it can be written as a ratio of two integers: $2/1$.
Non-examplesThings that may be mistaken for examples of this term.
-
$\pi$ is not a rational number, because it is not a ratio of two integers.
-
$i$ is not rational, because it is not a real number.
-
$\sqrt{2}$ is not a rational number, because $\sqrt{2}$ is irrational: $\sqrt{2}$ is not a ratio of integers.
Properties
- A real number is rational if and only if its decimal expansion either ends or repeats.
- Between every two real numbers there is a rational number: $\rationals$ is dense in $\reals$.
Distinctions involving this term
- Rational vs. Irrational vs. Algebraic vs. Transcendental Numbers: Real numbers are classified in two independent ways. Every real number is either rational or irrational. Separately, every number is either algebraic or transcendental. Irrational does not mean transcendental: $\sqrt{2}$ is irrational but algebraic.
All definitions · All distinctions · All examples · Notation