by John on November 16, 2010
Donald Knuth recommends using the symbol ⊥ between two numbers to indicate that they are relatively prime. For example:

The symbol is denoted \perp in TeX because it is used in geometry to denote perpendicular lines. It corresponds to Unicode character U+27C2.
I mentioned this on TeXtip yesterday and someone asked for the reason for the symbol. I’ll quote Knuth’s original announcement and explain why I believe he chose that symbol.
When gcd(m, n) = 1, the integers m and n have no prime factors in common and we way that they’re relatively prime.
This concept is so important in practice, we ought to have a special notation for it; but alas, number theorists haven’t agreed on a very good one yet. Therefore we cry: Hear us, O Mathematicians of the World! Let us not wait any longer! We can make many formulas clearer by adopting a new notation now! Let us agree to write ‘m ⊥ n ’, and to say “m is prime to n,” if m and n are relatively prime.
This comes from Concrete Mathematics. In the second edition, the text is on page 115. The book explains why some notation is needed, but it does not explain why this particular symbol.
[Correction: The book does explain the motivation for the symbol. The justification is in a marginal note and I simply overlooked it. The note says "Like perpendicular lines don't have a common direction, perpendicular numbers don't have common factors."]
Here’s what I believe is the reason for the symbol.
Suppose m and n are two positive integers with no factors in common. Now pick numbers at random between 1 and mn. The probability of being divisible by m and n is 1/mn, the product of the probabilities of being divisible by m and n. This says that being divisible by m and being divisible by n are independent events. Also, independent events are analogous to perpendicular lines. The analogy is made precise in this post where I show the connection between correlation and the law of cosines.
So in summary, the ideas of being relatively prime, independent, and perpendicular are all related, and so it makes sense to use a common symbol to denote each.
Related posts:
Four uncommon but handy math notations
Connecting number theory and probability
Orthogonal polynomials
by John on September 21, 2010
If you’ve heard of factorial, have you heard of double factorial or subfactorial?
Double factorial is written n!!. The factorial of a positive integer n is the product of all positive integers less than or equal to n. The double factorial of n is the product of all integers less than or equal to n that have the same parity. That is, for an odd number n, the product defining n!! includes only odd integers and for an even integer n, the product defining n!! includes only even integers. For example, 7!! = 7 × 5 × 3 × 1 and 8!! = 8 × 6 × 4 × 2. By definition, 0!! and -1!! equal 1.
Double factorials often arise in integrals and power series and make it possible to state equations succinctly that would be verbose otherwise. For example,

It’s possible to define higher factorials or multifactorials. For instance n!!!, the triple factorial of n, is the product of positive integers less than n and congruent to n mod 3. So, for example, 8!!! = 8 × 5 × 2.
Factorials count the number of ways a set can be arranged. A set with n distinct elements can be arranged in n! ways. The number of arrangements that move every element from its original position is the subfactorial of n. Sometimes subfactorial is written with the exclamation point in front of its argument and sometimes it is written with an inverted exclamation point following its argument, i.e.

(By the way, the inverted exclamation mark, used to mark the beginning of an exclamatory sentence in Spanish, is Unicode character U+00A1. You can produce it in HTML with &iexl;. In TeX, you can produce it !` outside of math mode and \mbox{!`} in math mode.)
Subfactorial can be computed from the factorial by

for positive n where ⌊x⌋ is the greatest integer less than x. The subfactorial of 0 is defined to be 1.
Related posts:
Chances a card doesn’t move in a shuffle
Two useful asymptotic series
Entering Unicode characters in Windows and Linux (Gnome)
by John on September 22, 2008
Here are some of my favorite notations that are not commonly used.
The first is Richard Stanley’s notation for counting the number of ways to select k objects from a set of n objects with replacement. This is similar to the problem solved by binomial coefficients, but not the same since binomial coefficients count the number of possible selections without replacement. Stanley’s symbol is

I like this symbol for two reasons. First, it’s good to have a notation, any notiation, for a concept that comes up fairly often. Second, it’s appropriate for this symbol to resemble the binary coefficient symbol. See selecting with replacement for more on Stanley’s symbol, how to think about it and how to compute it.
Next is Iverson’s notation for indicator functions. Iverson’s idea was to put a Boolean condition in square brackets to indicate the function that is 1 when that condition is true and 0 otherwise. For example, [x > y] is the function f(x, y) such that f equals 1 when x is greater than y and equals 0 for all other arguments. This notation saves ink and makes it easier to concentrate on the substance of an expression. For more on Iverson’s notation, see Concrete Mathematics.
Another notation from Concrete Mathematics is the use of a perpendicular symbol to note that two integers are relatively prime. For example, m ⊥ n would indicate that that m and n are relatively prime. The more common way to denote this would be to say gcd(m, n) = 1. The perpendicular symbol is nice because perpendicular lines have no component of direction in common, just as relative prime numbers have no prime factors in common.
Finally, multi-index notation is a handy way to make multivariable theorems easier to remember. For example, with this notation, Taylor series in several variables look similar to Taylor series in one variable.
Related link:
Stanley’s twelvefold way