d2jsp
Log InRegister
d2jsp Forums > Off-Topic > General Chat > Homework Help > Math
Prev12
Add Reply New Topic New Poll
Banned
Posts: 4,377
Joined: Dec 25 2012
Gold: 13,953.01
Warn: 10%
Sep 20 2013 03:35pm
My bad I forgot to log c!, so change my answer by replacing c with log c please lol

Banned
Posts: 4,377
Joined: Dec 25 2012
Gold: 13,953.01
Warn: 10%
Sep 20 2013 03:36pm
Quote (zackill4 @ Sep 20 2013 04:34pm)
Let's say c is the number we want to reach

and we have number k


if we root k n times, it should be the equivalent of this

k^(1/2n)

we want to know n such that this is < c

k^(1/2n) < c


1/(2n) * log k < c

2n > 1/c * log k

n > 1/(2c) * log k

so you take the smallest  n  such that n is an integer and is greater than this expression.


FIXED:

k^(1/2n)
we want to know n such that this is < c
k^(1/2n) < c
1/(2n) * log k < log c

2n > log k/log c

n > 1/2* log k/log c

smallest integer n such that n > 1/2 * log k / log c

Reminder: n is the NUMBER of square roots it takes. k is the number we're square rooting and c is the "base". Checked it with 4 and 2, seems legit :/

Note for c = 1 that this expression is infinite (because no such n exists, unless k = 1, but then the expression is undefined)

This post was edited by zackill4 on Sep 20 2013 03:51pm
Banned
Posts: 4,377
Joined: Dec 25 2012
Gold: 13,953.01
Warn: 10%
Sep 20 2013 03:42pm
Quote (brmv @ Sep 20 2013 04:30pm)
use log to work it out for 3 and 2
ie for a number where it is possible to reach exactly those number or the closest you can get to it
to reach 2 or 3 exactly would need to start with a (2^n)th power of the number
for one it would be infinitely often


2^n is not correct because we are dealing with square rooting. It would have to be 2^(2n)...

For example, 8 = 2^3, yet you can't square root 8 an integer number of times to get exactly 2


Basically, this problem boils down to a simple log, except that instead of looking for the exponent x such that a^x = b, we want to restrict x to be multiple of 2
The problem then becomes a^(2x) > b, which is why the solution is > half of log base a of b


This post was edited by zackill4 on Sep 20 2013 04:00pm
Member
Posts: 28,331
Joined: Jun 9 2007
Gold: 11,700.00
Sep 20 2013 04:36pm
Quote (zackill4 @ 20 Sep 2013 21:42)
2^n is not correct because we are dealing with square rooting. It would have to be 2^(2n)...
For example, 8 = 2^3, yet you can't square root 8 an integer number of times to get exactly 2
...


guess you misunderstood what i was saying
"start with a (2^n)th power of the number" means x^(2^n)

2^(2n) is not correct, eg 2^6 = 128 and it's square root is 11.3137....
Banned
Posts: 4,377
Joined: Dec 25 2012
Gold: 13,953.01
Warn: 10%
Sep 20 2013 04:40pm
Quote (brmv @ Sep 20 2013 05:36pm)
guess you misunderstood what i was saying
"start with a (2^n)th power of the number" means x^(2^n)

2^(2n) is not correct, eg 2^6 = 128 and it's square root is 11.3137....


lol, my bad, idk what I was thinking


FIXED AGAIN:

k^(1/2^n)
we want to know n such that this is < c
k^(1/2^n) < c
1/(2^n) * log k < log c

2^n > log k/log c
log both sides

n > 1/log(2)* log(log k/log c)

This post was edited by zackill4 on Sep 20 2013 04:45pm
Go Back To Homework Help Topic List
Prev12
Add Reply New Topic New Poll