---
title: "10月31日和12月25日是否是同一天？"
author: "onewayonelife"
date: "2012-03-07T09:35:05Z"
tags: []
categories: ["非技术"]
slug: "10-31-12-25"
draft: false
lastmod: "2012-03-07T09:35:05Z"
id: 1442445
url: "https://onewayonelife.iteye.com/blog/1442445"
---

There are only 10 types of people in the world: those who understand binary, and those who don't.

This joke relies on the fact that mathematical expressions, just as expressions in natural languages, may have multiple meanings. Like other [puns](http://en.wikipedia.org/wiki/Pun "Pun"), the humor is derived from an ambiguous meaning; in this case, the expression *10* in the [binary numeral system](http://en.wikipedia.org/wiki/Binary_numeral_system "Binary numeral system") is equal to the decimal number [two](http://en.wikipedia.org/wiki/2_%28number%29 "2 (number)").

Another pun using different [radices](http://en.wikipedia.org/wiki/Radix "Radix"), sometimes attributed to computer scientists, asks:

Why do mathematicians always confuse [Halloween](http://en.wikipedia.org/wiki/Halloween "Halloween") and [Christmas](http://en.wikipedia.org/wiki/Christmas "Christmas")?

Because 31 [Oct](http://en.wikipedia.org/wiki/Octal "Octal") = 25 [Dec](http://en.wikipedia.org/wiki/Decimal "Decimal").

The humor lies in the similarity of the abbreviation for October/[Octal](http://en.wikipedia.org/wiki/Octal "Octal") and December/Decimal, and the coincidence that the two representations equal the same amount (31 Octal is 3\*8 + 1 = 2\*10 + 5 = 25 Decimal).