Calculating 52 Factorial By Hand |
|
|
My latest posts can be found here: Previous blog posts:
Additionally, some earlier writings: |
Calculating 52 Factorial By Hand - 2016/01/04Some time ago I gave a talk in which I showed that something unexpected happened with a deck of playing cards. I had some volunteers try it, and while they did so I talked about just how many orderings there are for 52 cards. I computed (an approximation to) $52!$ (52 factorial) by hand. It's not so hard - you just calculate $54!$ and then divide by 3000. I know that sounds like a joke, but it's not. Here's why. Firstly, I'm going to be really rough and ready here, and we can come back later to refine our calculations. So I'll start with Stirling's approximation to the factorial:
We can use that to compute $52!,$ but suddenly we notice that $e$ is roughly $2.7.$ That means that if we compute $54!$ we get:
And $54/e$ is roughly $20,$ so this simplifies enormously. Taking just the first part:
We can break that down further:
And
Trace that back, re-insert it all, and we have:
Now we return to $\sqrt{2{\pi}54}.$ Using $pi\approx3$ this simplifies to $\sqrt{324}$ which is 18. Pulling it all together, we get:
But now we want to divide by $(53\times54),$ which is close enough to $2880,$ so we get:
And there we are - we've computed (an approximation to) $52!$ by computing $54!$ and dividing by $3000.$ Obvious, really.
CommentsI've decided no longer to include comments directly via the Disqus (or any other) system. Instead, I'd be more than delighted to get emails from people who wish to make comments or engage in discussion. Comments will then be integrated into the page as and when they are appropriate. If the number of emails/comments gets too large to handle then I might return to a semi-automated system. That's looking increasingly unlikely.
|
Quotation from Tim Berners-Lee |