Solving 2^k = n/k for k in Terms of n: Tips and Tricks

  • Thread starter Thread starter flash
  • Start date Start date
  • Tags Tags
    Expression
AI Thread Summary
The equation 2^k = n/k cannot be solved algebraically for k in terms of n, and typically requires numerical approximation unless n has specific properties. The discussion highlights that the equation can be transformed into k * 2^k = n, leading to the expression k * e^(k ln(2)) = n. By substituting y = k ln(2), the equation becomes y * e^y = n ln(2), which can be solved using the Lambert W function. This results in the solution k = W(n ln(2))/ln(2). The Lambert W function provides a way to express k in terms of n, offering a pathway to approximate solutions.
flash
Messages
66
Reaction score
0
I would like to solve 2^k = \frac{n}{k} 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:
Thanks, that's what I wanted to know. Cheers
 
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).
 
I tried to combine those 2 formulas but it didn't work. I tried using another case where there are 2 red balls and 2 blue balls only so when combining the formula I got ##\frac{(4-1)!}{2!2!}=\frac{3}{2}## which does not make sense. Is there any formula to calculate cyclic permutation of identical objects or I have to do it by listing all the possibilities? Thanks
Since ##px^9+q## is the factor, then ##x^9=\frac{-q}{p}## will be one of the roots. Let ##f(x)=27x^{18}+bx^9+70##, then: $$27\left(\frac{-q}{p}\right)^2+b\left(\frac{-q}{p}\right)+70=0$$ $$b=27 \frac{q}{p}+70 \frac{p}{q}$$ $$b=\frac{27q^2+70p^2}{pq}$$ From this expression, it looks like there is no greatest value of ##b## because increasing the value of ##p## and ##q## will also increase the value of ##b##. How to find the greatest value of ##b##? Thanks

Similar threads

Back
Top