Solving 2^k = n/k for k in terms of n

  • Thread starter Thread starter flash
  • Start date Start date
  • Tags Tags
    Expression
Join the discussion
Registration is free. Start your own thread to ask a follow-up.
4 replies · 2K views
flash
Messages
66
Reaction score
0
I would like to solve [tex]2^k = \frac{n}{k}[/tex] for k in terms of n, but can't seem to do it. Any help greatly appreciated!
 
Physics news on Phys.org
Hm, there may not be a closed form solution. Does anyone else have better luck?
 
No, you can't solve it algebraically. You can only approximate it numerically, unless n is very special.
 
Last edited:
That depends upon what you mean by "closed form" or "algebraic" solution.

This is obviously equivalent to k2k= n and, since 2k= ekln(2), k ek ln(2)= n. Multiplying on both sides by ln 2, (k ln(2)) ek ln(2)= n ln(2). If we let y= k ln(2), that equation is yey= n ln(2).

That equation is directly solvable by the Lambert W function (which is simply defined as the inverse function to f(x)= xex): k ln(2)= y= W(n ln(2)) so
k= W(n ln(2))/ln(2).