Tagged: maths

  • Note - Posted on

    Today, while working through an exercise in Eloquent JavaScript, I learned about the concept of parity in maths.

    The parity of an integer is its attribute of being even or odd. Thus, it can be said that 6 and 14 have the same parity (since both are even), whereas 7 and 12 have opposite parity (since 7 is odd and 12 is even).

    – Weisstein, Eric W, Parity

    Initially, I had assumed “same parity” meant “same value”, which is roughly what it means in English. However, in maths it’s narrower. It just means both numbers are even or both are odd.