Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
@DustinG.Mixon Thanks :) I split $x_i$ into $\sqrt {x_i}\cdot\sqrt {x_i}$ like a doofus. By the way, simple as your comment is, if you add it as an answer, I will happily accept it, as this is what I was looking for!
@DustinG.Mixon Thanks, the lower bound argument makes sense. Could you spell out the upper bound, sorry? Perhaps I'm botching the C-S inequality, but I can only get $\sum_{i=1}^n x_i\leq n^2$.
@SamHopkins They are supposed to be the same $n$. The peculiar case is $n=8$, when only $7$ squares are needed to produce a maximal sum. Of course, we can artificially decompose one of the squares into two smaller ones, giving us $8$ squares, as prescribed.
@GerryMyerson Yes. Sorry if I'm not being very formal with the parameters of the question, but indeed the squares have to be sort of "snapped to" the integer coordinates of the plane.