Let $n\ge 1$ and let $a_1\leq a_2\leq \cdots \leq a_n$ be real numbers such that $a_1 + 2a_2 + \cdots + na_n = 0$. Prove that for any real number $x, \sum_{i=1}^n a_i \lfloor ix \rfloor\ge 0$.
The result clearly holds for $n=1$. Suppose it holds for some $n\ge 1$ and let $a_1,\cdots, a_{n+1}$ satisfy that $a_1+2a_2+\cdots + na_n = 0$. Now for the inductive step, we naturally think of defining a new sequence in terms of the $a_i$'s. Let $b_i = a_i + (2/n) a_{n+1}$ for $1\leq i\leq n$. Then $$b_1 +2b_2+\cdots + nb_n = (2/n)a_{n+1}\cdot n(n+1)/2 + (a_1+2a_2+\cdots + na_n) = (n+1)a_{n+1} + (a_1+\cdots + na_n) = 0.$$ By the inductive hypothesis, for any real number $x$, $\sum_{i=1}^n (b_i)\lfloor ix \rfloor \ge 0\Leftrightarrow \sum_{i=1}^n (a_i\lfloor ix\rfloor + (2/n) a_{n+1}\lfloor ix\rfloor) \ge 0$. But how do I proceed from here? I don't think there's a closed form formula for $\sum_{i=1}^n \lfloor ix\rfloor$, but I know that $\sum_{i=0}^{n-1} \lfloor x + i/n\rfloor = \lfloor nx\rfloor$ for any real number x.
OP has essentially everything that is needed, and just needs to push through the algebra.
Following OP's induction proof,
Note: I recognize a variant of this problem, where for an increasing sequence $A_i$ and decreasing sequence $B_i$ such that $ \sum i A_i = \sum i B_i$, then $ \sum A_i \lfloor i x \rfloor \geq \sum B_i \lfloor i x \rfloor$.
The problem follows from the variant by setting $B_i = 0$.
The proof by induction is similar to the above.
There is also a direct proof that essentially chains all of these inequalities together.
Conversely, the variant follows from the problem by setting $a_i = A_i - B_i$.