That's a really big hat...

Say you were to put all the positive integers into an infinitely large hat, picking out two of those positive integers at random, α and β. What's the probability that α and β are coprime?


The answer is 0.61.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Ryan Tamburrino
Dec 15, 2014

The probability that a number α is divisible by a prime p is 1/p, since every pth number is divisible by p. Because we're talking about two independent events, the probability that two numbers α and β are both divisible by a prime p is (1/p)(1/p) = (1/p)^2. Thus the probability that α and β are not divisible by a prime p is 1 - (1/p)^2. Now, since our two numbers are coprime, we to have carry this out for all primes. So we end up with (1-(1/2)^2)(1-(1/3)^2)(1-(1/5)^2)... Now the problem relies on the observation that the above expression is the inverse of the Riemann Zeta Function ζ(n) at n = 2. So our answer is 1/ζ(2) = 6/π^2 = .61 to two decimal places.

And, as always, it is impossible to randomly pick an integer from a countably infinite set.

What is the probability that 1 is picked?

Note that the countable sum of 0's is 0.

Calvin Lin Staff - 6 years, 5 months ago

Log in to reply

So would it be better to rephrase the question by defining a probability function P(x) which gives the probability of selecting two coprime natural numbers from a set of x numbers and then asking for the limit as x approaches infinity?

Ryan Tamburrino - 6 years, 5 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...