I have a set of numbers $R$ with $n$ elements. For this example, let's use $R = \{2, 3, 5, 7\}$. In practice, it has about 20 to 30 elements. There's also a constant $P$. Let's use $P = 10$ for this.
I am trying to solve the following equation for $c$:
$\displaystyle\sum_{i=1}^n \left (\frac{R_i}{max(R)}\right )^c = P$
This example gets reduced too:
$\left (\frac{2}{7}\right )^c +\left (\frac{3}{7}\right )^c +\left (\frac{5}{7}\right )^c +\left (\frac{7}{7}\right )^c = 10$
I have no idea how to extract $c$ in this example, even less so in the general case. Some trial-error led to $c = -1.228079005$.
Is there a good way to compute this?