[OS X TeX] TeX request

Gary L. Gray gray at engr.psu.edu
Thu Jun 23 23:01:36 CEST 2005


On Jun 23, 2005, at 4:53 PM, Bruno Voisin wrote:

> Le 23 juin 05 à 22:41, Chris Goedde a écrit :
>
>
>> On Jun 23, 2005, at 3:24 PM, Gerben Wierda wrote:
>>
>>
>>> I need help with a trick I want to perform. I want to be able to  
>>> display all the digits of
>>>
>>> 2!
>>> 10!
>>> 200!
>>>
>>
>> Do you really need 200!?
>>
>> A little googling turned up http://www.cs.umd.edu/Outreach/ 
>> hsContest97/questions/node3.html which might provide a solution. I  
>> don't know if it will work for you, since their code may only work  
>> if the answer has fewer than 100 digits. (I'm also not sure what  
>> language it's written in.) I think that 200! has close to 400  
>> digits in the answer, if my back-of-the-envelope answer is correct.
>>
>
> In[1]:=
> 200!
>
> Out[1]=
> 7886578673647905035523632139321850622951359776871732632947425332443594 
> 49963403\
> 3429203042840119846239041772121389196388302576427902426371050619266249 
> 52829931\
> 1134628572707633172373969889439224456214516642402540332918641312274282 
> 94853277\
> 5242424075739032403212574055795686602260319041703240623517008587961789 
> 22222789\
> 623703897374720000000000000000000000000000000000000000000000000
>
> Which seems to make 376 digits. I'm impressed, and curious about  
> your envelope: which algorithm did you use? Stirling's formula?

I think it is 375. It got that with:

Norm[DigitCount[200!],1]

in Mathematica.

-- Gary
--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
           & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>





More information about the macostex-archives mailing list