A square number is an integer of the form for some integer . Consecutive nonnegative squares differ by .
The square part of a positive integer is its largest square divisor, . Dividing by its square part leaves the squarefree part.
For a nonnegative integer , compute its integer square root and accept exactly when . An approximate square root must be corrected with exact integer comparisons before this equality is tested. This procedure distinguishes a squareness test from merely approximating a square root.

Articles by others on the same topic (1)

A square number, also known as a perfect square, is a number that can be expressed as the product of an integer multiplied by itself. In other words, a square number is the result of squaring an integer (raising it to the power of 2).