Suppose $t$ is a positive integer and suppose $n_i$, $i=1,2,...,2t$ are non-negative integers such that $\sum_{i=1}^{2t}n_i=4t+3$. Minimize $$S={\sum}_{i=1}^{2t}\dfrac{1}{n_i}$$ and determine the optimal choice of integers $n_i$ such that this sum is minimized.
I understand that the equality will be achieved if $n_i$ are more or less equal, so intuitively, the way to ensure that $\sum_i n_i=4t+3$ is $n_i=3$ for $3$ of the $i$'s, and rest all $n_i=2$.
But is there a purely inequality based proof that tells us that this will be the solution?