Integers

Integers
represents the domain of integers, as in xIntegers.

DetailsDetails

  • xIntegers evaluates immediately only if x is a numeric quantity.
  • Simplify[exprIntegers] can be used to try to determine whether an expression is an integer.
  • IntegerQ[expr] tests only whether expr is manifestly an integer (i.e., has head Integer).
  • Integers is output in TraditionalForm as .

ExamplesExamplesopen allclose all

Basic Examples  (3)Basic Examples  (3)

7 is an integer:

In[1]:=
Click for copyable input
Out[1]=

If is an integer, so is :

In[1]:=
Click for copyable input
Out[1]=

Find positive integer solutions of a Pell equation:

In[1]:=
Click for copyable input
Out[1]=
Introduced in 1999
(4.0)