Hacker News new | ask | show | jobs
by SantalBlush 994 days ago
There are also infinitely many rationals between any two distinct irrationals.

My favorite way of visualizing the difference uses the fact that every rational has a repeating decimal after some nth decimal place, and no irrational has a repeating decimal. Say you want to construct a number x, where 0 < x < 1, by drawing integers 0 through 9 randomly from a hat. Each integer drawn from the hat is placed at the end of the decimal; for example, if you draw 1,3,7,4 then the decimal becomes 0.1374. You then draw, say, 1, and it becomes 0.13741, and so on. If you could draw infinitely many times from the hat, what is the probability that you'll construct a number with a repeating sequence? That would give a rational number.