A
Army1987
[snip] "What's the most elegant andEric Sosman said:
return n & 1;
How do you explain what & does without using the notion of 'two'?
A better way:
n is even: ∃x ∈ ℤ ∣ x + x = n
n is odd: n ∈ ℤ ⋀ ¬(n is even)
(Yes, there are two x's in the sum above, but this doesn't use the
notion of 'two' anymore than the sentence "I am happy." uses the
notion of 'three' because it has three words, right?)