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 cReminder: 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