EvenQ
EvenQ[n]
returns True if n
is an even integer.
Attributes[EvenQ] := {Listable, Protected}
Simple examples
In[1]:= EvenQ[6]
Out[1]= True
In[2]:= EvenQ[-2]
Out[2]= True
In[3]:= EvenQ[1]
Out[3]= False
In[4]:= EvenQ[2.]
Out[4]= EvenQ[2.]
In[5]:= EvenQ[a]
Out[5]= EvenQ[a]