= Square root of an integer
{title2=$\sqrt n,\quad n\in\mathbb Z_{\ge0}$}
= Square roots of integers
{synonym}
For a <nonnegative integer> $n$, its <square root> $\sqrt n$ is the unique <nonnegative real number> whose square is $n$. It is an <integer> exactly when $n$ is a <perfect square>; otherwise it is an <irrational number>. Indeed, if $\sqrt n=a/b$ with <coprime> positive <integers> $a,b$, then $a^2=nb^2$ forces every <prime divisor> of $b$ to divide $a$, so $b=1$.
For example, $\sqrt{49}=7$, whereas $\sqrt{12}=2\sqrt3$ is irrational. The <integer square root> is a different operation: it rounds $\sqrt n$ down, so the <integer square root> of $12$ is $3$.
Back to article page