EvenQ
(Built-in Mathematica Symbol) EvenQ[expr] gives True if expr is an even integer, and False otherwise.
Four underlying types of numbers are built into Mathematica. Intrinsic types of numbers in Mathematica. Rational numbers always consist of a ratio of two integers, reduced to ...
Mathematica provides a general mechanism for specifying constraints on patterns. All you need to do is to put /;condition at the end of a pattern to signify that it applies ...
OddQ
(Built-in Mathematica Symbol) OddQ[expr] gives True if expr is an odd integer, and False otherwise.
Continue[] exits to the nearest enclosing Do, For, or While in a procedural program.
Mathematica contains hundreds of original algorithms for computing integer functions involving integers of any size.
Mathematica symbolic expressions can represent an immense range of types of objects. Mathematica provides a rich collection of functions to test expressions. Functions that ...
IntegerQ[expr] gives True if expr is an integer, and False otherwise.
Divisible[n, m] yields True if n is divisible by m, and yields False if it is not.
NestWhileList[f, expr, test] generates a list of the results of applying f repeatedly, starting with expr, and continuing until applying test to the result no longer yields ...