News for hackers. Stuff that matters.
Re:Defining zero factorial by panic on Sunday April 12, 2015 @04:56AM (#9362685)
If you have n! in binary, count the number of zeros at the end of its binary expansion and call this count k. The number k+1 approximates n relatively closely (the error n-k is the number of ones in n's binary expansion—see http://www.cut-the-knot.org/blue/LegendresTheorem.shtml).

There are no comments on this comment yet.