Everything2
Near Matches
Ignore Exact
Full Text
Everything2

Even numbers, odd numbers and the XNOR logical operator

created by Dante the Sheep

(idea) by Dante the Sheep (2.5 y) (print)   ?   (I like it!) Sat Jan 04 2003 at 0:44:51

During a rather creative stint last night, I came up with the following idea which considering basic logical operators and the addition of even and odd numbers.


Anyone familiar with basic logic knows what the XNOR operator is and what it does, but for the sake of thoroughness, here's a basic run through: In a simple logic table, the XNOR operator returns a True iff (if and only if) both the inputs are True or False. If one inputs a True and a False, the answer is False. Essentially, the XNOR operator only produces a True if the input is homogeneous.

The nature of even and odd numbers has an identical relationship to the XNOR operator concerning addition. For example, let's set some thing as equivalent. First, let's assume that if a number is even, it's the same as putting a value of True into an XNOR expression. Then, let's say that if a number is odd, it's the same as putting a value of False into an XNOR expression. Before we go on, let's look at a basic property of addition of even and odd numbers.

When one adds two odd numbers, one gets an even number (3+7=10).
When one adds two even numbers, one gets an even number (6+12=18).
When one adds an even and an odd number, one gets an odd number (13+8=21)

It should become quite obvious to the reader that even and odd numbers, when also considered as equivalent to True and False, exhibit the exact same behavior as an XNOR operation. Funky, no?


Note: The kind user Brontosaurus brought to my attention that the same properties are true when multiplying nonzero numbers with different signs (IE a + times a + is +, a - times a - is +, and + times - is -).

Note: Although I can't think of why this would change anything, this whole node refers to real integers. As far as I can figure out, decimals, irrationals, and imaginary numbers don't really make sense in terms of odd and even numbers.

printable version
chaos

Can I go back to sleep now? XNOR IFF binary
No Odd numbered Star Trek movies suck
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.
  Epicenter
Login
Password

password reminder
register

Everything2 Help

Cool Staff Picks
Things you could have written:
The New Revised Guide To Internet Funni
Two monks and a woman
The New York Deli Experience
Shaving your nuts without permanent injury and/or accidental castration
Blade Runner
Nerve agent
The logic of atheism
Jews in Ireland
Crisis on Infinite Earths
The Fortress Unvanquishable, save for Sacnoth
Stab me again. It never felt so good to bleed.
On finding a wife
Mythos : Roman to Greek - A table of Gods
New Writeups
a8ksh4
regret(idea)
Heisenberg
Editor Log: July 2008(log)
sam512
halfway homes, catacombs, twilight zones(fiction)
Timeshredder
The Texas UFO Crash of 1897(event)
Heitah
The Dark Knight(review)
ignis_glaciesque
Uppsala(place)
ignis_glaciesque
diffusion of responsibility(idea)
TheOrientalAfrican
The Soft Meadow of my Childhood(event)
BookReader
The Dragon Slayers(fiction)
kohlcass
religiously fashionable(review)
Pavlovna
waulking song(thing)
tentative
Stick Man(poetry)
Ereneta
The Fight with the Snapping Turtle: Or, the American St. George(poetry)
sitaraika
Fog and fire(personal)
MonoliTheory
She sobs in response(fiction)
Everything 2 is brought to you by the letter C and The Everything Development Company