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