The Doomsday Algorithm

The Doomsday Algorithm is a neat diversion (or party trick, depending on your frame of mind). It helps you figure out the day of week based on the date for any month and any year. Clearly, this was created by someone (Conway) who likes finding patterns in things.