There is this old paradox about moving halfway to a point, then halfway again, and so on. I'm used to hearing it referred to as one of of Zeno's paradoxes, but evidently there's documents from Hui Shi who separately thought about this around the same time as Zeno.

We can use this paradox to squeeze all the numbers into a box! First, draw a line; second, place a number at the center of your line; third, place the successive number halfway to the end of the line; then place the next number halfway from the previous number to the end of the line; repeat. Reverse this process to get the numbers going off to the other side of the line but with decreasing numbers instead.



This process is directly related to geometric series. Here's a reference on how to do that process in a smooth way to enable smooth dragging. This can help with the construction of a bijection between an open interval and the real numbers.