I am assuming we are utilizing the axiom of choice because I read in the suggested questions that may have my answer that it's needed for the following bijection to work.
Suppose I am given a countable number of sets A1,A2… each with a countable number of elements, I will use the notation that given a set A the first element will be represented as A(1) and so forth.
I was shown a bijection f that puts these in correspondence with the natural numbers as follows:
f(1)=A1(1),f(2)=A1(2),f(3)=A2(1),f(4)=A1(3),f(5)=A2(2),f(6)=A3(1)…
And I was told that the explicit bijection is f(n2+2nx+x2−3x−n+22)=An(x)
Where x takes values in the naturals.
How is the formula for this bijection derived?
Answer
The pattern being followed is shown here. As Gae. S. indicates, this works off of a particular map from N→N×N that follows this path:
(taken from http://www.cut-the-knot.org/do_you_know/countRatsX.shtml)
Someone apparently has taken the time to calculate this map is the inverse function of ρ : N×N→N : (n,x)↦n2+2nx+x2−3x−n+22
(I've never seen anyone bother to figure that out, before. Usually, they just take it as obvious from the path that such a map exists, which is all that you need to prove the theorem.)
So far, the axiom of choice is not involved. The only place it comes up is this: All you know about the Ai is that they are countable. But in proclaiming that there is a "least element" of A1 to be called A1(1), etc. you are actually choosing for each i, a particular mapping from some initial segment of N to Ai. This requires using the Axiom of Choice (or at least, of Countable Choice, which is weaker). Once you have made these choices, then you can define a map from g : N×N→∞⋃i=1Ai : (n,x)↦An(x)
Then your f=g∘ρ−1.
But there are two problems with calling this a bijection, or even fully defined. "Countable" does not imply infinite. Finite sets are also countable. ("Denumerable" is the condition of being both countable and infinite.) If the number of sets Ai is finite, or if any of the Ai are themselves finite, then f is not a bijection between N and ⋃∞i=1Ai. In fact, there are some n for which f(n) is not even defined. f will only be a bijection when the collection {Ai} is infinite, and each Ai is also infinite. Or at least, if it doesn't run afoul of the second problem.
The second problem is that we don't know if Ai are disjoint. It could even be that for all i>1,Ai⊆A1. Even if everything is denumerable, if there is even one element common to two of the sets, say Ai(x)=Aj(y), then f will not be an injection, as f(i2+2ix+x2−3x−i+22)=f(j2+2jy+y2−3y−j+22)
Finally, to answer the exact question you asked, if you look at the figure above, the indexes for the first column are 1,3,6,10,16,.... These are the triangular numbers. The nth such number is the sum from 1 to n, and is well-known to be n(n+1)2. To get the rest of the indices along a diagonal, subtract the column number less 1 from the triangular number from the first column. For row n column x, the triangular number is for n+x−1, so it is (n+x)(n+x−1)2−(x−1), which simplifies to your formula.
No comments:
Post a Comment