For a probability vector $P = (p_1,p_2,.. p_n)$ i.e. $p_i\geq 0$ and $\sum_{i=1}^{n} p_i = 1$, define an entropy-like quantity
$$X(P) = \sum_{i=1}^n p_i\left(\log \frac{1}{p_i}\right)^2$$
Is there any upper bound (tighter than the one pointed out by Rammus) to $X(P)$ in terms of $n$? For $H(P) = \sum_{i=1}^n p_i\left(\log \frac{1}{p_i}\right)$, it is known that $H(P)\leq \log n$.