Square root of an integer
ID: square-root-of-an-integer
For a nonnegative integer , its square root is the unique nonnegative real number whose square is . It is an integer exactly when is a perfect square; otherwise it is an irrational number. Indeed, if with coprime positive integers , then forces every prime divisor of to divide , so .
For example, , whereas is irrational. The integer square root is a different operation: it rounds down, so the integer square root of is .
New to topics? Read the docs here!