Re:1/9998 = 0.0001 0002 0004 0008 0016 0032 0064 0128 0256..
by tryeng on Wednesday January 29, 2014 @01:24PM
(#7145721)
You can of course do this trick in any base. If we choose e.g. base 2^n for the n-th row of pascals triangle, we can use the following code for getting the n-th row of pascals triangle:
Nice, but hopelessly inefficient. :) You can also calculate a binomial coefficient the same way without any looping construct (the exponential operator does the looping for you).
[ Parent
| on HN ]
There are no comments on this comment yet.