+0  
 
+5
484
2
avatar

Can anybody compute the first 10 digits of 1,000,000!. And if so, how is it computed? I thank you.

 Feb 23, 2017
 #1
avatar
0

1000000! is just 1000000*999999*999998*999997 and so on untill one so you can compute it using coding by

 

x=1000000

y=1

z=0

answer=0

then have the coding language repeat this

(x*(x-y)=z

x=x-1)

answer=z+answer

 

 

then when its done have it print the answer and take the first ten digits.

 

Thanks for asking it was fun to solve.

 Feb 23, 2017
 #2
avatar
0

1) - There are an number of "arbitrary precision calculators" online which can give you the answer directly and almost instantaneously: I found at least 3 such calculators. One of them gave the first 500 digits + the exponent in seconds, and here it is:

1,000,000! =8.2639316883 3124006237 6646103172 6662911353 4797896387 3045167775 8855633796 1103564508 4446530511 3114639733 5160680421 0878588541 4647469506 4783618230 1210975423 2995901156 4174624917 3798883892 6919341417 6545783239 3198728024 7219893964 3654445521 6153392058 3519938798 9417742062 4084159398 7701818807 2231692520 5773712843 6859815222 3893115212 5527954682 9742282164 2927484938 8778471244 3572285950 9343621176 4525449305 2265841197 6299056190 1212024141 9002534128 3194330650 7620700405 1595915117 1866138447 5090075583 4037427137 686877042e+5565708

 

2) - You can also use the "Stirling's Formula" to easily give you the first few dozen digits. You have to use logs to base 10 to use it for such a large number.

 Feb 23, 2017

1 Online Users

avatar