I have a matrix defined by $A_{ik} = R_{ik}log(\pi_{k})$ where $R$ is a matrix having the same dimensions as $A$ and $\pi$ is a vector of the same size as any row of $A$. I wish to find the elements of $\pi$ such that the sum of all the elements of $A$ is maximized, constrained by the fact that the elements of $\pi$ must sum to $1$ (i.e. $\pi$ is a probability vector).
I know the solution is
$$\pi_{k} = \frac{1}{N}\displaystyle\sum_{i} R_{ik}$$
where $N$ is the number of rows of $A$. But how do I prove this? Ideas?