Some days ago I came across this question. You may notice that I tried to answer it being however really not sure about what I was saying. (Feel free to "-1" my post !). Not being satisfied by my answer, I've been playing around with this problem and came to an odd conclusion. I'm therefore asking you to check what's wrong in my proof. I repeat the setting here :
Let $N \in \mathbb{N},\ N \geq 1$, let also $x_1,...,x_n,\ x_i \geq 1,\ \sum_i x_i = N$. Note also that $n$ may vary $1 \leq n \leq N$
(In the original post the OP possibly specified $x_i \in \mathbb{N}$ but I relaxed this constraint here)
We are interessed in the following quantity on which I manage to extract a lower and upper bound: $$\sum_{i=1}^n \log \frac{N}{x_i}$$
Lowerbound : $$ \sum_{i=1}^n \log \frac{N}{x_i} = n\log N - \sum_{i=1}^n \log x_i \overset{(*)}{\geq} n\log N -n\log\left(\frac1n \sum_{i=1}^n x_i \right) = \\ n \log N - n\log\frac{N}n = n\log n $$
Upperbound : $$ \sum_{i=1}^n \log \frac{N}{x_i} \overset{(*)}{\leq} n \log\left(\frac1n \sum_{i=1}^n \frac{N}{x_i} \right) = n\log N -n\log n + n\log\left(\sum_{i=1}^n \frac{1}{x_i} \right) \overset{(**)}{\leq} \\ n\log N -n\log n + n\log\left(\sum_{i=1}^n \frac{n}{N} \right) = n\log N -n\log n + n\log\left(\frac{n^2}{N}\right) = \\ n\log N -n\log n + 2n\log n - n\log N = n \log n $$
$(*)$ Jensen's inequality, precisely $n \log\left(\frac1n \sum_i x_i \right) \geq \sum \log x_i$
$(**)$ Setting $x_i = N/n$ which maximize the sum.
This therefore would prove that $\sum_{i=1}^n \log \frac{N}{x_i} = n \log n$ which sounds totally wrong to me however I'm not sure where this proof fails. Could you help me ? :)
EDIT : After seeing the comments, it is now clear that $(**)$ is wrong. The setting that maximizes the sum, I think, is $x_1 = N-n+1,\ x_2 = ... = x_n = 1$. Remember that $x_i$ must be $\geq 1$ in the statement.