# Math paradox: putting infinite number of balls in a box

**URL:** <https://boards.straightdope.com/t/math-paradox-putting-infinite-number-of-balls-in-a-box/820841>\
**Category:** Factual Questions\
**Created:** [September 5, 2018, 11:15pm UTC](https://boards.straightdope.com/t/math-paradox-putting-infinite-number-of-balls-in-a-box/820841 "2018-09-05T23:15:55Z")\
**Posts on this page:** 20\
**Page:** 3

<div class="post-metadata">

**Author:** ![harmonicamoon](https://avatars.discourse-cdn.com/v4/letter/h/65b543/32.png) [@harmonicamoon](https://boards.straightdope.com/u/harmonicamoon)\
**Post date:** [September 6, 2018, 2:08pm UTC](https://boards.straightdope.com/t/math-paradox-putting-infinite-number-of-balls-in-a-box/820841/41 "2018-09-06T14:08:24Z")

</div>

> [@Riemann](#):
>
> Yo mama’s, obviously.

You are infinitely approaching the “Don’t be a jerk”, mode.

---

<div class="post-metadata">

**Author:** ![Thudlow\_Boink](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/thudlow_boink/32/320_2.png) [@Thudlow\_Boink](https://boards.straightdope.com/u/Thudlow_Boink)\
**Post date:** [September 6, 2018, 2:56pm UTC](https://boards.straightdope.com/t/math-paradox-putting-infinite-number-of-balls-in-a-box/820841/42 "2018-09-06T14:56:58Z")

</div>

> [@harmonicamoon](#):
>
> You are infinitely approaching the “Don’t be a jerk”, mode.

::shrug:: I thought it was funny, and not meant to be taken personally.

---

<div class="post-metadata">

**Author:** ![RaftPeople](https://avatars.discourse-cdn.com/v4/letter/r/6f9a4e/32.png) [@RaftPeople](https://boards.straightdope.com/u/RaftPeople)\
**Post date:** [September 6, 2018, 4:02pm UTC](https://boards.straightdope.com/t/math-paradox-putting-infinite-number-of-balls-in-a-box/820841/43 "2018-09-06T16:02:00Z")

</div>

> [@Joey\_P](#):
>
> As far as limits, that’s one of the first tools given to us in calculus to deal with a variable that continues towards, but never reaches a given number (or infinity). It’s a perfectly cromulant method that’s been in use for nearly 2500 years (or 400, depending on who invented it). Even if you ignore that and hand it to a high school Algebra student with no concept of limits, I don’t see how they’d come up with zero as the final answer.
> 
> Also, regarding switching between finite concrete answers and limit based math, again, that’s part of calculus. Plug some numbers in, plug more numbers in and eventually find an equation to interpolate/extrapolate what happens elsewhere.

The difference between the area under a curve and the OP is that in the OP the infinite items are given explicit unique identifiers, and we are then asked to counter logic applied to those unique identifiers.

In calculus, you don’t uniquely identify each discrete chunk of area and then reason about those discrete elements after you’ve conceptually transformed the entire set into a different animal using limits.

---

<div class="post-metadata">

**Author:** ![Dead\_Cat](https://avatars.discourse-cdn.com/v4/letter/d/9fc29f/32.png) [@Dead\_Cat](https://boards.straightdope.com/u/Dead_Cat)\
**Post date:** [September 6, 2018, 5:24pm UTC](https://boards.straightdope.com/t/math-paradox-putting-infinite-number-of-balls-in-a-box/820841/44 "2018-09-06T17:24:55Z")

</div>

> [@etasyde](#):
>
> The idea that all infinities are equal is completely wrong.

This is correct.

> [@](#):
>
> Consider, for every whole number there is half that number. There are therefore two “half” numbers for every one whole number. There are an infinite number of whole numbers, ergo there is an infinity twice as large as the first infinity of “half” numbers. And then again for “quarter” numbers. And then again for, well, any subdivision of numbers.

The real mathematicians will correct me if I’m wrong, but I believe this is incorrect. The cardinality of the infinite set of rational numbers is equal to the cardinality of the infinite set of the natural numbers, i.e. there exists a one-to-one mapping between the two sets. Just don’t ask me to prove it - this is the point at which I abandoned my mathematical studies and switched to philosophy, which is really what this thread is about :).

The cardinality of the infinite set of the Real numbers, however, is indeed greater than the cardinality of the infinite set of the natural numbers, as proved by Cantor’s diagonal argument.

---

<div class="post-metadata">

**Author:** ![Joey\_P](https://avatars.discourse-cdn.com/v4/letter/j/919ad9/32.png) [@Joey\_P](https://boards.straightdope.com/u/Joey_P)\
**Post date:** [September 6, 2018, 5:34pm UTC](https://boards.straightdope.com/t/math-paradox-putting-infinite-number-of-balls-in-a-box/820841/45 "2018-09-06T17:34:56Z")

</div>

> [@RaftPeople](#):
>
> The difference between the area under a curve and the OP is that in the OP the infinite items are given explicit unique identifiers, and we are then asked to counter logic applied to those unique identifiers.
> 
> In calculus, you don’t uniquely identify each discrete chunk of area and then reason about those discrete elements after you’ve conceptually transformed the entire set into a different animal using limits.

True, but that’s why I mentioned (earlier) that IMO, requiring the balls to be numbered is what changes this from a paradox to a riddle. ISTM, it would make more sense if numbering them was part of the argument that there are zero balls in the box as opposed.

The area under a curve, as I’ve stated already, has nothing to do with this other than trying to explain to Malden Capell that pushing things towards infinity isn’t a useless exercise but rather a fundamental part of calculus.

---

<div class="post-metadata">

**Author:** ![harmonicamoon](https://avatars.discourse-cdn.com/v4/letter/h/65b543/32.png) [@harmonicamoon](https://boards.straightdope.com/u/harmonicamoon)\
**Post date:** [September 6, 2018, 5:46pm UTC](https://boards.straightdope.com/t/math-paradox-putting-infinite-number-of-balls-in-a-box/820841/46 "2018-09-06T17:46:32Z")

</div>

> [@Thudlow\_Boink](#):
>
> ::shrug:: I thought it was funny, and not meant to be taken personally.

Easy for you to say. He ain’t talking’ about jo mama.

I thought it was quite crude.

---

<div class="post-metadata">

**Author:** ![Great\_Antibob](https://avatars.discourse-cdn.com/v4/letter/g/e47c2d/32.png) [@Great\_Antibob](https://boards.straightdope.com/u/Great_Antibob)\
**Post date:** [September 6, 2018, 5:52pm UTC](https://boards.straightdope.com/t/math-paradox-putting-infinite-number-of-balls-in-a-box/820841/47 "2018-09-06T17:52:07Z")

</div>

> [@Dead\_Cat](#):
>
> The real mathematicians will correct me if I’m wrong, but I believe this is incorrect. The cardinality of the infinite set of rational numbers is equal to the cardinality of the infinite set of the natural numbers, i.e. there exists a one-to-one mapping between the two sets. Just don’t ask me to prove it - this is the point at which I abandoned my mathematical studies and switched to philosophy, which is really what this thread is about :).

You are correct and well done with a reasonable definition for what constitutes the ‘same’ infinity.

It is true we can have ‘different’ infinities that have distinct and interesting properties. The particular example given by **etasyde** is not really such a one.

One way we can categorize infinities is, as you note, by their cardinality. Whole numbers and the “half-numbers” as defined by **etasyde** have the same cardinality. They can be placed in a 1-1 correspondence with each other, i.e. they are the “same” kind of infinity in some (well defined by not intuitive to humans) sense.

---

<div class="post-metadata">

**Author:** ![kanicbird](https://avatars.discourse-cdn.com/v4/letter/k/5f8ce5/32.png) [@kanicbird](https://boards.straightdope.com/u/kanicbird)\
**Post date:** [September 6, 2018, 6:03pm UTC](https://boards.straightdope.com/t/math-paradox-putting-infinite-number-of-balls-in-a-box/820841/48 "2018-09-06T18:03:19Z")

</div>

Another way to look at the removal of each named ball, is when one gets to the ‘end’ (infinity), you have moved all the named balls, yes every one, and you can’t count higher. But since you have replaced them with 10x more balls of greater values, now you only will have balls that really don’t have defined names anymore, infinity +1, Infinity +2, etc, which can not be a named ball as it is undefined, yet their they are cluttering up the box.

---

<div class="post-metadata">

**Author:** ![Lance\_Turbo](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/lance_turbo/32/6156_2.png) [@Lance\_Turbo](https://boards.straightdope.com/u/Lance_Turbo)\
**Post date:** [September 6, 2018, 6:07pm UTC](https://boards.straightdope.com/t/math-paradox-putting-infinite-number-of-balls-in-a-box/820841/49 "2018-09-06T18:07:17Z")

</div>

I don’t know if anyone will find value in this post but I’m posting it anyway.

I’m going to restate the problem in a more abstract way to get rid of all the distractions about balls and boxes and time limits (or monkeys and coconuts for those familiar with the problem in a different context). This will (hopefully) make it clear that what we’re really dealing with here is the difference between pointwise and uniform convergence.

Define a sequence of functions f[sub]n/sub for n = 1, 2, 3, … piecewise as follows: f[sub]n/sub = 1 for n \<= x \< 10 and f[sub]n/sub = 0 otherwise.

Note that the integral of f[sub]n/sub over the real line is equal to 9n.

Now the limit of f[sub]n/sub as n goes to infinity is f(x) = 0. However, this convergence is pointwise but not uniform. (Left as an exercise for the reader.)

As a result of this the limit of the integral of f[sub]n/sub as n goes to infinity grows without bound while the integral of the limit of f[sub]n/sub is zero.

Hope this helps.

---

<div class="post-metadata">

**Author:** ![Hari\_Seldon](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/hari_seldon/32/5173_2.png) [@Hari\_Seldon](https://boards.straightdope.com/u/Hari_Seldon)\
**Post date:** [September 6, 2018, 6:53pm UTC](https://boards.straightdope.com/t/math-paradox-putting-infinite-number-of-balls-in-a-box/820841/50 "2018-09-06T18:53:28Z")

</div>

Ah the paradoxes of the infinite. Certainly at the “end” no ball is in the box, since very ball is removed. No question of that. And while there are different orders of infinity, they do not enter this question. For a 1-1 correspondence between the positive rationals and positive integers, write down all the rationals in lowest terms in the following order: first write down all those for which the sum of numerator and denominator is 2. There is only one, namely 1/1. Then all those with sum 3, in order of the numerator: 1/2, 2/1. Then 4: 1/3, 3/1 (omit 2/2). Then 5: 1/4, 2/3, 3/2, 4/1. Continue to get a series 1/1,1/2,2/1,1/3,3/1,1/4,2/3,3/2,4/1,1/5,5/1,1/6,2/5,3/4,4/3,5/2,6/1,… The nth term of this sequence corresponds to n. I once saw an actual formula for a different pairing, but I have forgotten it.

---

<div class="post-metadata">

**Author:** ![wolfpup](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/wolfpup/32/10618_2.png) [@wolfpup](https://boards.straightdope.com/u/wolfpup)\
**Post date:** [September 6, 2018, 6:56pm UTC](https://boards.straightdope.com/t/math-paradox-putting-infinite-number-of-balls-in-a-box/820841/51 "2018-09-06T18:56:25Z")

</div>

IMHO, a useful conceptualization of a countable infinity is that of a dynamic set that is always increasing. Thus the stated problem trivially becomes a non-paradox because the requisite condition “at the end” does not exist. This differs from a meaningful solution in integral calculus because there, as the number of elements being summed tends to infinity, their magnitude tends to zero according to some function, so the solution converges to a limit.

---

<div class="post-metadata">

**Author:** ![Lance\_Turbo](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/lance_turbo/32/6156_2.png) [@Lance\_Turbo](https://boards.straightdope.com/u/Lance_Turbo)\
**Post date:** [September 6, 2018, 7:27pm UTC](https://boards.straightdope.com/t/math-paradox-putting-infinite-number-of-balls-in-a-box/820841/52 "2018-09-06T19:27:57Z")

</div>

[The Tree of All Fractions](https://demonstrations.wolfram.com/TheTreeOfAllFractions/)

That gets you most of the way to my favorite enumeration of the (positive) rationals.

---

<div class="post-metadata">

**Author:** ![Riemann](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/riemann/32/3133_2.png) [@Riemann](https://boards.straightdope.com/u/Riemann)\
**Post date:** [September 6, 2018, 7:34pm UTC](https://boards.straightdope.com/t/math-paradox-putting-infinite-number-of-balls-in-a-box/820841/53 "2018-09-06T19:34:37Z")

</div>

> [@Lance\_Turbo](#):
>
> [The Tree of All Fractions](https://demonstrations.wolfram.com/TheTreeOfAllFractions/)
> 
> That gets you most of the way to my favorite enumeration of the (positive) rationals.

Yup, very cool. Remarkable that such a simple procedure has this property:

> [@](#):
>
> The amazing thing is that every positive rational number appears in this tree exactly once and in lowest terms.

---

<div class="post-metadata">

**Author:** ![ftg](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/ftg/32/2801_2.png) [@ftg](https://boards.straightdope.com/u/ftg)\
**Post date:** [September 6, 2018, 8:25pm UTC](https://boards.straightdope.com/t/math-paradox-putting-infinite-number-of-balls-in-a-box/820841/54 "2018-09-06T20:25:49Z")

</div>

> [@Lance\_Turbo](#):
>
> [The Tree of All Fractions](https://demonstrations.wolfram.com/TheTreeOfAllFractions/)
> 
> That gets you most of the way to my favorite enumeration of the (positive) rationals.

Ah, the [Stern-Brocot](https://en.wikipedia.org/wiki/Stern%E2%80%93Brocot_tree) tree. Has all sorts of connections to Fibonacci numbers, _e_, and ton of other things. I highly recommend the section on it in Graham, Knuth,and Patashnik’s _Concrete Mathematics_. But not a lot to do with the OP.

Another way to attack the poor definition of the problem is to ask what you are doing when the number of balls approaches 10[sup]80[/sup]. How do you label the balls? How do you find the ball to remove? How long is it taking you to remove the ball? What the hey is this box made of? How big is it? Esp. when you really don’t want it to collapse into a black hole. Etc. 🙂

---

<div class="post-metadata">

**Author:** ![Thudlow\_Boink](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/thudlow_boink/32/320_2.png) [@Thudlow\_Boink](https://boards.straightdope.com/u/Thudlow_Boink)\
**Post date:** [September 6, 2018, 8:57pm UTC](https://boards.straightdope.com/t/math-paradox-putting-infinite-number-of-balls-in-a-box/820841/55 "2018-09-06T20:57:25Z")

</div>

I feel like throwing in a theoretical note for the calculus/analysis nerds, that may or may not have any real relevance to the subject of this thread.

> [@Joey\_P](#):
>
> One of the first things you learn in calculus is finding the area under a curve. It’s done by creating a [series of rectangular columns](https://www.intmath.com/blog/wp-content/images/2014/06/area-under-curve-rectangles.png) and adding their areas and [making them smaller](http://mathandmultimedia.com/wp-content/uploads/2012/10/area-under-a-curve.jpg) (and therefore a more accurate representation of the curve) until they are infinitely small.

> [@wolfpup](#):
>
> This differs from a meaningful solution in integral calculus because there, as the number of elements being summed tends to infinity, their magnitude tends to zero according to some function, so the solution converges to a limit.

When we talk Calculus, we often use verbs like “approaches,” “tends to,” converges," or “making them smaller,” and talk in terms of process or movement. This is done for convenience and, perhaps, to help our intuition. But it can possibly lead us astray if it makes us think about how long the process takes or what happens in the middle or at the end of it. Because the standard modern, Weierstrassian [definition of a limit](https://en.wikipedia.org/wiki/(%CE%B5,_%CE%B4)-definition_of_limit#Precise_statement_for_real_valued_functions) doesn’t use such concepts.

Here’s how [William Dunham](https://www.amazon.com/Calculus-Gallery-Masterpieces-Newton-Lebesgue/dp/0691136262/ref=sr_1_1?s=books&ie=UTF8&qid=1536266958&sr=1-1&keywords=calculus+gallery) described the difference between Cauchy’s earlier definition of a limit and Weierstrass’s:

> [@William Dunham](#):
>
> We recall that Cauchy built his calculus upon limits, which he defined in these words:
> 
> > [@Augustin-Louis Cauchy](#):
> >
> > When the values successively attributed to a variable approach indefinitely to a fixed value, in a manner so as to end by differing from it by as little as one wishes, this last is called the limit of all the others.
> 
> To us, aspects of this statement, for instance, the motion implied in the term “approach,” seem less than satisfactory. Is something actually moving? If so, must we consider concepts of time and space before talking of limits? And what does it mean for the process to “end”? The whole business needed one last revision.
> 
> Contrast Cauchy’s words with the polished definition from the Weierstrassians: [omitted here because too hard to get the formatting right, but see the Wikipedia link above]
> 
> Here nothing is in motion, and time is irrelevant. This is a static rather than a dynamic definition and an arithmetic rather than a geometric one. At its core, it is nothing but a statement about inequalities. And it can be used as the foundation for unambiguous proofs of limit theorems, for example, that the limit of a sum is the sum of the limits. Such theorems could now be demonstrated with all the rigor of a proposition from Euclid.

---

<div class="post-metadata">

**Author:** ![Chronos](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/chronos/32/134_2.png) [@Chronos](https://boards.straightdope.com/u/Chronos)\
**Post date:** [September 6, 2018, 9:07pm UTC](https://boards.straightdope.com/t/math-paradox-putting-infinite-number-of-balls-in-a-box/820841/56 "2018-09-06T21:07:56Z")

</div>

If you can ask “What is the number of a ball in the box?”, then I can ask “At what step did the number of balls in the box decrease?”.

---

<div class="post-metadata">

**Author:** ![RaftPeople](https://avatars.discourse-cdn.com/v4/letter/r/6f9a4e/32.png) [@RaftPeople](https://boards.straightdope.com/u/RaftPeople)\
**Post date:** [September 6, 2018, 10:12pm UTC](https://boards.straightdope.com/t/math-paradox-putting-infinite-number-of-balls-in-a-box/820841/57 "2018-09-06T22:12:30Z")

</div>

Would it help if we added a treadmill?

---

<div class="post-metadata">

**Author:** ![DSYoungEsq](https://avatars.discourse-cdn.com/v4/letter/d/c6cbf5/32.png) [@DSYoungEsq](https://boards.straightdope.com/u/DSYoungEsq)\
**Post date:** [September 7, 2018, 4:25am UTC](https://boards.straightdope.com/t/math-paradox-putting-infinite-number-of-balls-in-a-box/820841/58 "2018-09-07T04:25:11Z")

</div>

> [@RaftPeople](#):
>
> Would it help if we added a treadmill?

No, but please, please, please, don’t put the box with the balls behind a door and put some goats behind other doors!!!

---

<div class="post-metadata">

**Author:** ![Giles](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/giles/32/60_2.png) [@Giles](https://boards.straightdope.com/u/Giles)\
**Post date:** [September 7, 2018, 9:46am UTC](https://boards.straightdope.com/t/math-paradox-putting-infinite-number-of-balls-in-a-box/820841/59 "2018-09-07T09:46:57Z")

</div>

> [@DSYoungEsq](#):
>
> No, but please, please, please, don’t put the box with the balls behind a door and put some goats behind other doors!!!

That only works with an infinite number of doors and an infinite number of goats.

---

<div class="post-metadata">

**Author:** ![Cheesesteak](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/cheesesteak/32/3694_2.png) [@Cheesesteak](https://boards.straightdope.com/u/Cheesesteak)\
**Post date:** [September 7, 2018, 10:52am UTC](https://boards.straightdope.com/t/math-paradox-putting-infinite-number-of-balls-in-a-box/820841/60 "2018-09-07T10:52:59Z")

</div>

> [@markn\_1](#):
>
> Yes, at any step N, you are removing a single ball and there are vast hordes of larger numbered balls in the box, but eventually you will remove every single one of them (at the step matching the ball’s number).

I don’t think “eventually” works with an infinite number of steps.

Let’s say steps 2-Infinity are changed so that you add 1 ball instead of 10 while taking away 1. The box has 9 balls, and it will stay fixed at 9 forever, despite the same claim from above that you will remove every single ball.

You can, instead of having one large box, have each step add a box with 10 balls, then move the lowest numbered ball to the previous box, cascading down to the first box. Each box will therefore be fixed at 9 balls, and the number of boxes will increase without bound.

[Previous page](https://boards.straightdope.com/t/math-paradox-putting-infinite-number-of-balls-in-a-box/820841.md?page=2)

[Next page](https://boards.straightdope.com/t/math-paradox-putting-infinite-number-of-balls-in-a-box/820841.md?page=4)
