How big are factorials?
31–40 of 42 posts
Re: How big are factorials?
#32My favorite one is with the 52! seconds: Start a timer that will count down the number of seconds from 52! to 0. Then walk around the Earth’s equator with one step every billion years. Then, after you make your way around the earth equator (by taking 1 step every billion of years), you take one drop of water out of the Pacific Ocean. Then, you repeat the process of walking around the equator, and everytime you walk a…
Holy hell, this is great. I once made a little tool for getting more intuitive spatial scales for things in the universe at https://observablehq.com/@ikesau/scale-to-the-universe I feel like you could do something similar for these sorts of "fathom this large number" recipes.
Re: How big are factorials?
#33The author's casual mention of 52! at the opening of the article triggered an OLD webpage that I saw many years ago https://czep.net/weblog/52cards.html Anyone know how to determine the age of this page (it's got be at least 20yrs old)
It was made during the brief XHTML craze. (And it's also invalid XHTML)
Re: How big are factorials?
#34My favorite one is with the 52! seconds: Start a timer that will count down the number of seconds from 52! to 0. Then walk around the Earth’s equator with one step every billion years. Then, after you make your way around the earth equator (by taking 1 step every billion of years), you take one drop of water out of the Pacific Ocean. Then, you repeat the process of walking around the equator, and everytime you walk a…
For another perspective, 52! is roughly the number of atoms in a galaxy. Galaxies are really quite large!
Re: How big are factorials?
#35Re: How big are factorials?
#36Reminds me of: Professor asked us to find the biggest factorial using C programming language. And then using LISP. You can imagine our surprise.
Re: How big are factorials?
#37Earlier quoted context omitted.
There is a algorithm call Prime Swing Factorial that can compute large factorials exactly in arbitrary precision math using prime factorization. Like 10000000! in under second depending of how optimized the math library it. Probably like 100x faster than the normal method.
Worth noting for anyone reaching for this in practice rather than out of curiosity: several standard library implementations (Python's math.factorial is one) already use a divide-and-conquer multiplication scheme instead of naive sequential multiplication for exactly this reason, so you often get most of that speedup for free without implementing prime swing yourself.
Re: How big are factorials?
#38Re: How big are factorials?
#39Earlier quoted context omitted.
24! is approximately Avogadro's number (about a 3% difference).
inverse Gamma function of Avogadro's number (6.02 × 10²³) is ~ 24.99056
Re: How big are factorials?
#40Earlier quoted context omitted.
inverse Gamma function of Avogadro's number (6.02 × 10²³) is ~ 24.99056
Sure, but "23.99067408! is Avogadro's number" is both harder to remember and less cool than "24! is almost Avogadro's number".