Can You Pick a Random Natural Number? Probability Explained

Natural density says numbers below any fixed bound are negligible. Countable additivity says you still cannot draw one uniformly. Here is where the two separate.

Binary Buddies · 5 min read · 10 views

The question, as posed on Mathematics Stack Exchange, is: if you randomly selected a natural number, is the chance of it being larger than Graham's number almost 100%? The reasoning offered is that there are infinitely many natural numbers, and the ones below Graham's number make up an almost infinitesimal fraction of them.

Part of that reasoning is correct. Part of it rests on an operation that cannot be carried out. The phrase 'randomly selected a natural number' sounds like a well-defined instruction. Under the usual meaning, where every number is equally likely, it is not. The answers to the question pull these two parts apart.

Graham's number plays only a small role here. Any fixed natural number would raise the same issue. The real question is what 'probability' is allowed to mean on an infinite set like the natural numbers.

What natural density actually says

The highest-voted answer names the idea the question is reaching for: natural density. Fix the threshold G (Graham's number) and choose a cutoff N. Among the numbers from 1 to N, the fraction lying below G is (G − 1) / N, once N is at least G.

Now let N grow without bound. G is a fixed constant, however large it is, so (G − 1) / N tends to 0. In this limiting sense, the numbers below G become negligible, and the numbers above G have density 1.

So the intuition in the question is right when it is read as a statement about density. The answer says so directly: 'This part of your reasoning is good.' Nothing in the calculation depends on how large G is. It only depends on G being finite, which it is.

Why density is not a probability

The step that fails is the move from density to 'the probability of a random draw'. A random draw needs an actual probability measure P on the natural numbers. A uniform draw needs P({n}) to be the same for every n.

Density is a limit of ratios over finite initial segments. It looks like a probability, and on any finite segment {1, ..., N} it really is the uniform probability. The limit of those finite uniform distributions, though, is not itself a probability measure on the natural numbers. You cannot draw a sample from a limit of ratios.

This is the gap between 'almost all natural numbers are bigger than G' and 'a random natural number is almost surely bigger than G'. The first statement is true in the density sense. The second assumes a sampling process that does not exist.

The proof that a uniform draw cannot exist

The argument in the answer is short and uses only countable additivity. Suppose P exists and every singleton has the same probability p. The singletons are disjoint, and their union is the whole set of natural numbers. That gives:

1 = P(ℕ) = Σ_{n=1}^{∞} P({n}) = Σ_{n=1}^{∞} p
  • If p = 0, the sum is 0, not 1.
  • If p > 0, the partial sums N·p grow without bound, so the sum is not 1.

Either case is a contradiction, so no such P exists. A second answer makes the same point more bluntly. If all natural numbers had probability p, the first n of them would have total probability n·p, and for large enough n that exceeds 1. In its words: 'You can't randomly select a natural number.'

Pick a distribution, then compute

The second answer also gives the constructive fix. To make sense of 'what are the odds of it being higher than Graham's number?', you first have to specify a valid probability distribution. After that, the answer is a matter of calculation.

Here is an illustration of our own, not taken from the answers. Take P({n}) = 2^(−n). The probabilities sum to 1, so this is a legitimate distribution. The probability of drawing a number strictly greater than G is the tail sum Σ_{n>G} 2^(−n) = 2^(−G).

For any large G, that is close to zero, which is the opposite of 'almost 100%'. Any valid distribution has to put most of its mass somewhere finite. As a result, the probability of exceeding a huge fixed threshold depends entirely on the distribution you chose, and there is no neutral default to fall back on.

Where this reasoning does not fit, and what to watch for

Density statements are useful, but they should be quoted as density statements. 'Density 1' and 'probability 1 under a random draw' are different claims. Only the first holds without further assumptions. If a claim depends on a uniform pick from all natural numbers, that is a sign something has gone wrong.

The proof relies on countable additivity, which is the standard requirement for a probability measure. The thread does not discuss frameworks that relax it.

The practical lesson for anyone writing code or models is simple: every random integer has a distribution, stated or not. A 'random number' in software is drawn from some bounded or weighted range, and that range drives every probability you compute afterwards. Name the distribution first. If you skip that step, a question like this one has no answer.

This article draws on A question regarding the natural numbers and probability and answers to it (1, 2), on the Stack Exchange network, licensed under CC BY-SA 4.0.

  • #Graham's number
  • #countable additivity
  • #natural density
  • #natural numbers
  • #probability
  • #uniform distribution

Comments

Add a comment
Sign in with Google to join the conversation