• OddQ[expr] gives True if expr is an odd integer, and False otherwise.
is manifestly an odd integer (i.e., has head Integer
, and is odd).
• You can use OddQ[x] ^= True to override the normal operation of OddQ, and effectively define x to be an odd integer.
• New in Version 1.