Become a part of the TranceAddict community!Frequently Asked Questions - Please read this if you haven'tSearch the forums
TranceAddict Forums > Main Forums > Chill Out Room > Math Question Again
Pages (2): [1] 2 »   Last Thread   Next Thread
Share
Author
Thread    Post A Reply
creon444
Supreme tranceaddict



Registered: Sep 2003
Location: Lorz's moustache
Dunno Math Question Again

Once again I need your help please. Suppose you have a a number in the form x^y where x is positive and y is relatively large (more than a hundred). Is there any way you could figure out (approximately) how many digits that number has without having to expand the whole thing first? Is it even possible? Like, for example, if your number is 5^800, can you tell how many digits it has just by looking at it? Please I need to know!

Thanks to all of you!

Old Post Feb-16-2004 18:03  Tuvalu
Click Here to See the Profile for creon444 Click here to Send creon444 a Private Message Add creon444 to your buddy list Report this Post Reply w/Quote Edit/Delete Message
Durafei
the crazy russian



Registered: Oct 2000
Location: San Francisco, California
Re: Math Question Again

quote:
Originally posted by creon444
Once again I need your help please. Suppose you have a a number in the form x^y where x is positive and y is relatively large (more than a hundred). Is there any way you could figure out (approximately) how many digits that number has without having to expand the whole thing first? Is it even possible? Like, for example, if your number is 5^800, can you tell how many digits it has just by looking at it? Please I need to know!

Thanks to all of you!



well, here is a very ROUGH estimate...
5 ~= 2^2.. Thus 5^800 = (2^2)^800 = 2^1600.. Now 2^10 = 1024 ~= 1000.
Thus 2^1600 = (2^10)^160 ~= 1000 ^ 160 = 10 ^ 480. Now this has 480 + 1 = 481 digits. Thus a very rough estimate is 481 digits.

Last edited by Durafei on Feb-16-2004 at 23:14

Old Post Feb-16-2004 18:16  Canada
Click Here to See the Profile for Durafei Click here to Send Durafei a Private Message Visit Durafei's homepage! Add Durafei to your buddy list Report this Post Reply w/Quote Edit/Delete Message
Noisician
Harsh electronic purity



Registered: Aug 2001
Location:

common logarithm can be extremely useful in such situation.

with 5^800 i suppose u could do something like this

log(5^800) = 800log5 = 800log(10/2) = 800(log10 - log2) = 800-800log2.

now

800log2 = 80log(2^10) = 80log1024 > 80log1000 = 80*3 = 240

ie 800log2 > 240

also

80log1024-240 = 80(log1024-3) = 80(log1024-log1000) = 80log(1024/1000) = 80log(1000/1000+24/1000) = 80log(1+24/1000) = 80*24/1000*log(1+24/1000)^(1000/24)

now since limn→0(1+n)^(1/n) = e < 3

80*24/1000*log(1+24/1000)^(1000/24) < 80*24/1000*log3 = 48/25*log3 < 2log3 = log9 < 1

ie 80log1024-240 < 1 <=> 80log1024 < 241

evaluate

240 < 80log1024 < 241
240 < 800log2 < 241
-241 < - 800log2 < -240
-241+800 < -800log2+800 < -240+800
559 < 800-800log2 < 560
559 < log(5^800) < 560
log(10^559) < log(5^800) < log(10^560)
10^559 < 5^800 < 10^560

your number has _exactly_ 560 digits.

in general, u would need to use some arithmetic to estimate the value of logn first. once u've figured ou t the range, u should be able to get an answer. though it will be approximate in most cases...


___________________

Old Post Feb-16-2004 23:07 
Click Here to See the Profile for Noisician Click here to Send Noisician a Private Message Visit Noisician's homepage! Add Noisician to your buddy list Report this Post Reply w/Quote Edit/Delete Message
Durafei
the crazy russian



Registered: Oct 2000
Location: San Francisco, California

quote:
your number has _exactly_ 560 digits.


LOL - my estimate was just "slightly" wrong

For some reason I totally forgot that log(a^b) = b*loga


I can't believe how much worse at Math I became since I went to university 4 years...


BTW, you seem to be pretty sharp in Math. Have you competed at the international level (IMOs and such)?

Old Post Feb-16-2004 23:10  Canada
Click Here to See the Profile for Durafei Click here to Send Durafei a Private Message Visit Durafei's homepage! Add Durafei to your buddy list Report this Post Reply w/Quote Edit/Delete Message
Flyboy217
Senior tranceaddict



Registered: Aug 2003
Location: In DEEP SPACE... Space... space... sp...

5^800 = 10^(800 log 5)

~ 10 ^ (800*.69897)

~ 10 ^ (559.17600)

= 10^559 * 10^.176

Which is a 560-digit number (10000....) times a 1-digit number, so you have a 560-digit number.

If you have a calculator handy, this is the easiest way.

Noisician's solution is far more beautiful and intelligent, however

Old Post Feb-17-2004 02:01  United States
Click Here to See the Profile for Flyboy217 Click here to Send Flyboy217 a Private Message Add Flyboy217 to your buddy list Report this Post Reply w/Quote Edit/Delete Message
Flyboy217
Senior tranceaddict



Registered: Aug 2003
Location: In DEEP SPACE... Space... space... sp...

quote:
Originally posted by Durafei
LOL - my estimate was just "slightly" wrong

For some reason I totally forgot that log(a^b) = b*loga


I can't believe how much worse at Math I became since I went to university 4 years...


BTW, you seem to be pretty sharp in Math. Have you competed at the international level (IMOs and such)?


Did you attend Waterloo University (if that's what it's called)? They own in the Putnam. I'd venture to guess Noisician has also had some math competition experience. True?

Old Post Feb-17-2004 02:09  United States
Click Here to See the Profile for Flyboy217 Click here to Send Flyboy217 a Private Message Add Flyboy217 to your buddy list Report this Post Reply w/Quote Edit/Delete Message
AnotherWay83
The B00b Maintenance Guy™



Registered: Aug 2000
Location: land of d(-_-)b

theres actually a really simple formula for calculating the number of digits in a number in any base b, and you can find that formula here:

http://mathworld.wolfram.com/Digit.html

and that formula gives approx 560 as the number of digits in 5^800.

it seems to me, tho, that noisician worked it out on the fly, so kudos to him for that

Old Post Feb-17-2004 03:25 
Click Here to See the Profile for AnotherWay83 Click here to Send AnotherWay83 a Private Message Add AnotherWay83 to your buddy list Report this Post Reply w/Quote Edit/Delete Message
creon444
Supreme tranceaddict



Registered: Sep 2003
Location: Lorz's moustache

quote:
Originally posted by Noisician
common logarithm can be extremely useful in such situation.

with 5^800 i suppose u could do something like this

log(5^800) = 800log5 = 800log(10/2) = 800(log10 - log2) = 800-800log2.

now

800log2 = 80log(2^10) = 80log1024 > 80log1000 = 80*3 = 240

ie 800log2 > 240

also

80log1024-240 = 80(log1024-3) = 80(log1024-log1000) = 80log(1024/1000) = 80log(1000/1000+24/1000) = 80log(1+24/1000) = 80*24/1000*log(1+24/1000)^(1000/24)

now since limn→0(1+n)^(1/n) = e < 3

80*24/1000*log(1+24/1000)^(1000/24) < 80*24/1000*log3 = 48/25*log3 < 2log3 = log9 < 1

ie 80log1024-240 < 1 <=> 80log1024 < 241

evaluate

240 < 80log1024 < 241
240 < 800log2 < 241
-241 < - 800log2 < -240
-241+800 < -800log2+800 < -240+800
559 < 800-800log2 < 560
559 < log(5^800) < 560
log(10^559) < log(5^800) < log(10^560)
10^559 < 5^800 < 10^560

your number has _exactly_ 560 digits.

in general, u would need to use some arithmetic to estimate the value of logn first. once u've figured ou t the range, u should be able to get an answer. though it will be approximate in most cases...


Hehe, I knew you would be posting in this thread . Once again, thanks for your detailed explanation. Appreciate it .

Old Post Feb-17-2004 14:11  Tuvalu
Click Here to See the Profile for creon444 Click here to Send creon444 a Private Message Add creon444 to your buddy list Report this Post Reply w/Quote Edit/Delete Message
Harmonic
tranceaddict



Registered: Jan 2004
Location: Jax, FL

Brain hurting... shutdown.

Old Post Feb-17-2004 14:14  United States
Click Here to See the Profile for Harmonic Click here to Send Harmonic a Private Message Add Harmonic to your buddy list Report this Post Reply w/Quote Edit/Delete Message
creon444
Supreme tranceaddict



Registered: Sep 2003
Location: Lorz's moustache

quote:
Originally posted by AnotherWay83
theres actually a really simple formula for calculating the number of digits in a number in any base b, and you can find that formula here:

http://mathworld.wolfram.com/Digit.html

and that formula gives approx 560 as the number of digits in 5^800.

it seems to me, tho, that noisician worked it out on the fly, so kudos to him for that


So they do have a formula for that! Sweet .

Old Post Feb-17-2004 14:17  Tuvalu
Click Here to See the Profile for creon444 Click here to Send creon444 a Private Message Add creon444 to your buddy list Report this Post Reply w/Quote Edit/Delete Message
Durafei
the crazy russian



Registered: Oct 2000
Location: San Francisco, California

quote:
Originally posted by Flyboy217
Did you attend Waterloo University (if that's what it's called)? They own in the Putnam. I'd venture to guess Noisician has also had some math competition experience. True?


I'm at UW now.. We used to own in Putnam - true, but not anymore. All the smart kids have graduated, and now all great students go to US schools.

Old Post Feb-17-2004 15:56  Canada
Click Here to See the Profile for Durafei Click here to Send Durafei a Private Message Visit Durafei's homepage! Add Durafei to your buddy list Report this Post Reply w/Quote Edit/Delete Message
Flyboy217
Senior tranceaddict



Registered: Aug 2003
Location: In DEEP SPACE... Space... space... sp...

quote:
Originally posted by AnotherWay83
theres actually a really simple formula for calculating the number of digits in a number in any base b, and you can find that formula here:

http://mathworld.wolfram.com/Digit.html

and that formula gives approx 560 as the number of digits in 5^800.

it seems to me, tho, that noisician worked it out on the fly, so kudos to him for that


Indeed, that is a general formula for the solution. In the case of the question posted here, it simplifies a bit to the soln presented above.

The number of digits in m^n is

[n*log m] + 1

But I suggest reading and understanding Noisician's post in today's world over calculator over-reliance.

Old Post Feb-17-2004 22:35  United States
Click Here to See the Profile for Flyboy217 Click here to Send Flyboy217 a Private Message Add Flyboy217 to your buddy list Report this Post Reply w/Quote Edit/Delete Message

TranceAddict Forums > Main Forums > Chill Out Room > Math Question Again
Post New Thread    Post A Reply

Pages (2): [1] 2 »  
Last Thread   Next Thread
Click here to listen to the sample!Pause playbackIshkur's Guide - what's the real name of "Robert Miles - Rain"? [2004] [6]

Click here to listen to the sample!Pause playbackDumb Dan & Ozgur Can - "Intrigue" [2006]

Show Printable Version | Subscribe to this Thread
Forum Jump:

All times are GMT. The time now is 14:12.

Forum Rules:
You may not post new threads
You may not post replies
You may not edit your posts
HTML code is ON
vB code is ON
[IMG] code is ON
 
Search this Thread:

 
Contact Us - return to tranceaddict

Powered by: Trance Music & vBulletin Forums
Copyright ©2000-2026, Jelsoft Enterprises Ltd.
Privacy Statement / DMCA
Support TA!