Author |
Topic: How many digits? (Read 307 times) |
|
BNC
Uberpuzzler
    

Gender: 
Posts: 1732
|
 |
How many digits?
« on: Jun 3rd, 2004, 5:37am » |
Quote Modify
|
If I were to write the number 22004 followed by the number 52004 (both in explicit decimal notation), how many digits would I write?
|
|
IP Logged |
How about supercalifragilisticexpialidociouspuzzler [Towr, 2007]
|
|
|
Grimbal
wu::riddles Moderator Uberpuzzler
    

Gender: 
Posts: 7527
|
 |
Re: How many digits?
« Reply #1 on: Jun 3rd, 2004, 6:22am » |
Quote Modify
|
Ten. But some of them more than once. More seriously, I would propose: ceil(log10(2)*2004)+ceil(log10(5)*2004) which I leave to the reader to calculate.
|
|
IP Logged |
|
|
|
harpanet
Junior Member
 

Posts: 109
|
 |
Re: How many digits?
« Reply #2 on: Jun 3rd, 2004, 6:42am » |
Quote Modify
|
I'll do the calculation by hand and let you know next year.
|
|
IP Logged |
|
|
|
BNC
Uberpuzzler
    

Gender: 
Posts: 1732
|
 |
Re: How many digits?
« Reply #3 on: Jun 3rd, 2004, 7:08am » |
Quote Modify
|
on Jun 3rd, 2004, 6:22am, Grimbal wrote:... I would propose: <hidden> |
| explaining how you arrived at an answer is more valuable than the answer itself !
|
|
IP Logged |
How about supercalifragilisticexpialidociouspuzzler [Towr, 2007]
|
|
|
Grimbal
wu::riddles Moderator Uberpuzzler
    

Gender: 
Posts: 7527
|
 |
Re: How many digits?
« Reply #4 on: Jun 3rd, 2004, 7:53am » |
Quote Modify
|
on Jun 3rd, 2004, 7:08am, BNC wrote:explaining how you arrived at an answer is more valuable than the answer itself ! |
| I didn't give the answer, I just told how I computed it! OK. A N-number digit can have values 10^(N-1)<=value<10^N. so, (N-1)<=log10(value)<N which means that if you know the value and want to know the number of digits, you have N=floor(log10(value))+1. (I used ceil because in this case, the logs are not integers) If for example value = 3^123, log10(value) = 123*log10(3). This is valid for all 3 in {2,5} and any 123 in {2004}. But I realised there is a much simpler way to get to the same result.
|
|
IP Logged |
|
|
|
towr
wu::riddles Moderator Uberpuzzler
    
 Some people are average, some are just mean.
Gender: 
Posts: 13730
|
 |
Re: How many digits?
« Reply #5 on: Jun 3rd, 2004, 8:30am » |
Quote Modify
|
::log10(2) + log10(5) = 1, so I get 2005 Because ceil(a+b) <= ceil(a) + ceil(b) <= ceil(a+b) + 1, and in this case a+b is an integer and a and b aren't.::
|
« Last Edit: Jun 3rd, 2004, 8:32am by towr » |
IP Logged |
Wikipedia, Google, Mathworld, Integer sequence DB
|
|
|
Grimbal
wu::riddles Moderator Uberpuzzler
    

Gender: 
Posts: 7527
|
 |
Re: How many digits?
« Reply #6 on: Jun 3rd, 2004, 8:39am » |
Quote Modify
|
Exactly. Since 2*5=10. ::You have 2 numbers of which the product is 10^2024. It must have 2005 digits, since they are not of the form 10^n.::
|
|
IP Logged |
|
|
|
|