G
Gonzalez
Guest
Clive George wrote:
>"Gonzalez" <[email protected]> wrote in message
>news:[email protected]...
>> Clive George wrote:
>>
>> >"Gonzalez" <[email protected]> wrote in message
>> >news:[email protected]...
>> >> But what are the chances of exactly 50 heads and exactly 50 tails?
>> >
>> >100! / 50! / 50! / 2^100.
>> >
>> >Reduces to 3*3*3*3*11*13*17*19*29*31*53*59*61*67*71*73*79*83*89*97 / 2^97 (if I counted that
>> >right), both of which are still very big numbers. The answer is about 0.08.
>>
>> I admire your prime factorisation. Very neat!
>
>I'm afraid I can't claim any credit for that - I just used it as an excuse to practise my STL a
>bit, something I don't get to do very often.
>
>I played a bit more, and the exact answer is:
>
>.07958923738717876149812705024217046140293154042473332135734787051717376016 31321012973785400390625
>
>The top number is 12611418068195524166851562157 and the bottom 158456325028528675187087900672
This shows how rusty my maths is becoming. I was going to come back with, "But surely this must be a
repeating decimal.", but, of course, the denominator 2^97, will give a terminating decimal.
I had Mathematica on my old PC, and that could handle such numbers, but, alas, I can't instal it
on this one.
--
remove remove to reply
>"Gonzalez" <[email protected]> wrote in message
>news:[email protected]...
>> Clive George wrote:
>>
>> >"Gonzalez" <[email protected]> wrote in message
>> >news:[email protected]...
>> >> But what are the chances of exactly 50 heads and exactly 50 tails?
>> >
>> >100! / 50! / 50! / 2^100.
>> >
>> >Reduces to 3*3*3*3*11*13*17*19*29*31*53*59*61*67*71*73*79*83*89*97 / 2^97 (if I counted that
>> >right), both of which are still very big numbers. The answer is about 0.08.
>>
>> I admire your prime factorisation. Very neat!
>
>I'm afraid I can't claim any credit for that - I just used it as an excuse to practise my STL a
>bit, something I don't get to do very often.
>
>I played a bit more, and the exact answer is:
>
>.07958923738717876149812705024217046140293154042473332135734787051717376016 31321012973785400390625
>
>The top number is 12611418068195524166851562157 and the bottom 158456325028528675187087900672
This shows how rusty my maths is becoming. I was going to come back with, "But surely this must be a
repeating decimal.", but, of course, the denominator 2^97, will give a terminating decimal.
I had Mathematica on my old PC, and that could handle such numbers, but, alas, I can't instal it
on this one.
--
remove remove to reply