Given a portfolio of $n$ assets, mean returns vector $\mu$, covariance matrix $K$, one can calculate the portfolio weights $w^*$ that maximise the portfolio Sharpe ratio, by solving:
$$w^*=\text{argmax} \left[\frac {w^T \mu} {\sqrt {w^T K w}} \right]$$
Computing $w^*$ requires building the $K$ matrix and solving a system of quadratic equations, so it becomes computationally expensive when $n$ grows large.
However, if for some reason, we know that the asset returns are uncorrelated, the problem simplifies as: $$ K=\begin{bmatrix} \sigma_1^2 & .. & 0 \\ .. & .. & .. \\ 0 & .. & \sigma_n^2 \\ \end{bmatrix} $$
In this case, I suspect we don't need to bother with the quadratic equations, there should be straightforward formula to compute $w^*$ by just plugging in the individual $\mu_i$ and $\sigma_i$ of each asset:
$$w_i^* = f(\mu_1,\sigma_1,\dots,\mu_n,\sigma_n)$$
I am unable to derive the formula analytically. HELP!