mersenneforum.org  

Go Back   mersenneforum.org > Fun Stuff > Puzzles

Closed Thread
 
Thread Tools
Old 2006-04-16, 06:35   #1
mfgoode
Bronze Medalist
 
mfgoode's Avatar
 
Jan 2004
Mumbai,India

40048 Posts
Question How many zeros?


How many zeros are there in ( 10,000 ! ) ?
Mally
mfgoode is offline  
Old 2006-04-16, 10:16   #2
xilman
Bamboozled!
 
xilman's Avatar
 
"๐’‰บ๐’ŒŒ๐’‡ท๐’†ท๐’€ญ"
May 2003
Down not across

260348 Posts
Default

Quote:
Originally Posted by mfgoode

How many zeros are there in ( 10,000 ! ) ?
Mally
On the assumption that 10,000 is written in decimal, the answers for radices 2 through 16 are given below. It was a completely trivial program to write, so computing the results for other radices and for the cases where 10,000 is not written in decimal is left as an addtional exercise.

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
Paul

Last fiddled with by xilman on 2006-04-16 at 10:18 Reason: Trivial format change.
xilman is offline  
Old 2006-04-16, 10:44   #3
drew
 
drew's Avatar
 
Jun 2005

2×191 Posts
Default

Quote:
Originally Posted by xilman
On the assumption that 10,000 is written in decimal, the answers for radices 2 through 16 are given below. It was a completely trivial program to write, so computing the results for other radices and for the cases where 10,000 is not written in decimal is left as an addtional exercise.

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
Paul
Assuming base 10, and counting only trailing zeros, I get 2499.
drew is offline  
Old 2006-04-16, 11:06   #4
axn
 
axn's Avatar
 
Jun 2003

23×233 Posts
Default

Quote:
Originally Posted by mfgoode

How many zeros are there in ( 10,000 ! ) ?
Mally
Four
axn is online now  
Old 2006-04-16, 15:55   #5
mfgoode
Bronze Medalist
 
mfgoode's Avatar
 
Jan 2004
Mumbai,India

22·33·19 Posts
Thumbs down Number of zeros

Quote:
Originally Posted by xilman
On the assumption that 10,000 is written in decimal, the answers for radices 2 through 16 are given below. It was a completely trivial program to write, so computing the results for other radices and for the cases where 10,000 is not written in decimal is left as an addtional exercise.

5803 zeros in radix 10

Paul

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
mfgoode is offline  
Old 2006-04-16, 17:13   #6
xilman
Bamboozled!
 
xilman's Avatar
 
"๐’‰บ๐’ŒŒ๐’‡ท๐’†ท๐’€ญ"
May 2003
Down not across

22·3·941 Posts
Default

Quote:
Originally Posted by mfgoode

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
Sigh.

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
xilman is offline  
Old 2006-04-16, 17:27   #7
xilman
Bamboozled!
 
xilman's Avatar
 
"๐’‰บ๐’ŒŒ๐’‡ท๐’†ท๐’€ญ"
May 2003
Down not across

22·3·941 Posts
Default

Quote:
Originally Posted by mfgoode

Sorry to disappoint you Paul.
A fine effort but your answer on your 'trivial program' is way too high, and simply put, completely wrong.
Ok, since we disagree on such a simple process as counting, I suggest that you post your answer and your reasoning. I have already given mine in my previous post.


Paul

Last fiddled with by xilman on 2006-04-16 at 17:28
xilman is offline  
Old 2006-04-16, 18:57   #8
ewmayer
2ω=0
 
ewmayer's Avatar
 
Sep 2002
Repรบblica de California

2×11×13×41 Posts
Default

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
ewmayer is offline  
Old 2006-04-16, 19:09   #9
akruppa
 
akruppa's Avatar
 
"Nancy"
Aug 2002
Alexandria

2,467 Posts
Default

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
Alex

Last fiddled with by akruppa on 2006-04-16 at 19:29
akruppa is offline  
Old 2006-04-16, 19:21   #10
Andi47
 
Andi47's Avatar
 
Oct 2004
Austria

2·17·73 Posts
Default

Quote:
Originally Posted by akruppa
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 Pauls:

Code:
echo '10000!' | gp -q | tr -d "[1-9\n]" | wc
      0       1    5803
Alex
My count agrees with 5803 - using good ol' Derive for MS-DOS (0,2 seconds for the calculation of 10000!) and a text editor for counting.

If you take the "," for a decimal point, then you get 2 zeros in 10!
Andi47 is offline  
Old 2006-04-16, 20:01   #11
drew
 
drew's Avatar
 
Jun 2005

2×191 Posts
Default

Quote:
Originally Posted by xilman
of which 2502 are contiguous at the end of the number.
Aside from running that program, which I haven't done, how can you rationalize that result? I solved it using the following, assuming the trailing zeros would correspond to the combined number of 5s among the factors of all of the numbers multiplied (2s are far more abundant):

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?
drew is offline  
Closed Thread

Thread Tools


Similar Threads
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

All times are UTC. The time now is 15:49.


Wed May 18 15:49:36 UTC 2022 up 34 days, 13:50, 1 user, load averages: 2.00, 2.29, 2.25

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.

โ‰  ยฑ โˆ“ รท ร— ยท โˆ’ โˆš โ€ฐ โŠ— โŠ• โŠ– โŠ˜ โŠ™ โ‰ค โ‰ฅ โ‰ฆ โ‰ง โ‰จ โ‰ฉ โ‰บ โ‰ป โ‰ผ โ‰ฝ โŠ โŠ โŠ‘ โŠ’ ยฒ ยณ ยฐ
โˆ  โˆŸ ยฐ โ‰… ~ โ€– โŸ‚ โซ›
โ‰ก โ‰œ โ‰ˆ โˆ โˆž โ‰ช โ‰ซ โŒŠโŒ‹ โŒˆโŒ‰ โˆ˜ โˆ โˆ โˆ‘ โˆง โˆจ โˆฉ โˆช โจ€ โŠ• โŠ— ๐–• ๐–– ๐–— โŠฒ โŠณ
โˆ… โˆ– โˆ โ†ฆ โ†ฃ โˆฉ โˆช โŠ† โŠ‚ โŠ„ โŠŠ โŠ‡ โŠƒ โŠ… โŠ‹ โŠ– โˆˆ โˆ‰ โˆ‹ โˆŒ โ„• โ„ค โ„š โ„ โ„‚ โ„ต โ„ถ โ„ท โ„ธ ๐“Ÿ
ยฌ โˆจ โˆง โŠ• โ†’ โ† โ‡’ โ‡ โ‡” โˆ€ โˆƒ โˆ„ โˆด โˆต โŠค โŠฅ โŠข โŠจ โซค โŠฃ โ€ฆ โ‹ฏ โ‹ฎ โ‹ฐ โ‹ฑ
โˆซ โˆฌ โˆญ โˆฎ โˆฏ โˆฐ โˆ‡ โˆ† ฮด โˆ‚ โ„ฑ โ„’ โ„“
๐›ข๐›ผ ๐›ฃ๐›ฝ ๐›ค๐›พ ๐›ฅ๐›ฟ ๐›ฆ๐œ€๐œ– ๐›ง๐œ ๐›จ๐œ‚ ๐›ฉ๐œƒ๐œ— ๐›ช๐œ„ ๐›ซ๐œ… ๐›ฌ๐œ† ๐›ญ๐œ‡ ๐›ฎ๐œˆ ๐›ฏ๐œ‰ ๐›ฐ๐œŠ ๐›ฑ๐œ‹ ๐›ฒ๐œŒ ๐›ด๐œŽ๐œ ๐›ต๐œ ๐›ถ๐œ ๐›ท๐œ™๐œ‘ ๐›ธ๐œ’ ๐›น๐œ“ ๐›บ๐œ”