![]() |
![]() |
#1 |
Bronze Medalist
Jan 2004
Mumbai,India
22·33·19 Posts |
![]() ![]() How many zeros are there in ( 10,000 ! ) ? Mally ![]() |
![]() |
![]() |
#2 | |
Bamboozled!
"๐บ๐๐ท๐ท๐ญ"
May 2003
Down not across
11,887 Posts |
![]() Quote:
Code:
64325 zeros in radix 2 28213 zeros in radix 3 18559 zeros in radix 4 12318 zeros in radix 5 11837 zeros in radix 6 7485 zeros in radix 7 7851 zeros in radix 8 6435 zeros in radix 9 5803 zeros in radix 10 3997 zeros in radix 11 7353 zeros in radix 12 3262 zeros in radix 13 3861 zeros in radix 14 4349 zeros in radix 15 4166 zeros in radix 16 Last fiddled with by xilman on 2006-04-16 at 10:18 Reason: Trivial format change. |
|
![]() |
![]() |
#3 | |
Jun 2005
2·191 Posts |
![]() Quote:
|
|
![]() |
![]() |
#4 | |
Jun 2003
2×7×17×23 Posts |
![]() Quote:
![]() |
|
![]() |
![]() |
#5 | |
Bronze Medalist
Jan 2004
Mumbai,India
40048 Posts |
![]() Quote:
![]() Sorry to disappoint you Paul. A fine effort but your answer on your 'trivial program' is way too high, and simply put, completely wrong. I am not into programming, and all my puzzles or problems are by paper and pencil. Since it is wrong for radix 10, I presume it is wrong for the rest of the radices you have left me as an excercise. However it could be misleading to the others following this thread Anyway, Happy Easter to you, and loved ones. Mally ![]() |
|
![]() |
![]() |
#6 | |
Bamboozled!
"๐บ๐๐ท๐ท๐ญ"
May 2003
Down not across
101110011011112 Posts |
![]() Quote:
Assuming the simultaneously clever and fatuous answer of 4 is not correct, I invite you to count the zeros in the decimal expansion of 10,000! given in the attached output from pari/gp You will find that there are indeed 5803 zeros in 10,000!, of which 2502 are contiguous at the end of the number. The decimal expansion begins 28462596809170545189, which shows the first two occurrences of a zero. Paul Last fiddled with by xilman on 2008-10-25 at 11:26 |
|
![]() |
![]() |
#7 | |
Bamboozled!
"๐บ๐๐ท๐ท๐ญ"
May 2003
Down not across
11,887 Posts |
![]() Quote:
Paul Last fiddled with by xilman on 2006-04-16 at 17:28 |
|
![]() |
![]() |
#8 |
∂2ω=0
Sep 2002
Repรบblica de Califo
267548 Posts |
![]()
My answer for base-10 (5803 zeros) agrees with Paul's - that took all of roughly 15 seconds using the PARI-GP calculator and a simple text editor to verify. I don't know what the rest of y'all are smoking.
Last fiddled with by ewmayer on 2006-04-16 at 18:57 |
![]() |
![]() |
#9 |
"Nancy"
Aug 2002
Alexandria
2,467 Posts |
![]()
Maybe it's some sort of trick question and Mally wants the number of zero '0' characters in the string "( 10,000! )", not the number of zero digits in the decimal expansion of factorial(10000).
For the latter, my count agrees with Paul's: Code:
echo '10000!' | gp -q | tr -d "[1-9\n]" | wc 0 1 5803 Last fiddled with by akruppa on 2006-04-16 at 19:29 |
![]() |
![]() |
#10 | |
Oct 2004
Austria
2×17×73 Posts |
![]() Quote:
If you take the "," for a decimal point, then you get 2 zeros in 10! ![]() |
|
![]() |
![]() |
#11 | |
Jun 2005
2×191 Posts |
![]() Quote:
floor(10,000/2^5)+10,000/2^4+10,000/2^3+10,000/5^2+10,000/5 The result I get is 2499, which differs from your answer by 3. Where did those other 3 zeros come from? |
|
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Zeta nontrivial zeros list | Damian | Analysis & Analytic Number Theory | 11 | 2013-01-11 05:54 |
Many "Zeros" in Public Key, factorization easy ? | Unregistered | Homework Help | 28 | 2009-12-14 15:29 |