I am having a hard time answering the following questions, despite them seeming elementary at first glance.
Is it true that the maximum number of (non-overlapping) squares with side lengths $x$ cm that fits inside a larger square with sides $y$ cm, is $\left(\left\lfloor\frac{y}{x}\right\rfloor\right)^2?$
Is it true that the maximum number of (non-overlapping) cubes with side lengths $x$ cm that fits inside a larger cube with sides $y$ cm, is $\left(\left\lfloor\frac{y}{x}\right\rfloor\right)^3?$
I think these are true, but I don't actually know how to prove them. On the other hand, I was thinking that if we make enough room then maybe we can fit one more square/cube in one of the corners in some cases?
Maybe this can be reduced to a linear programming problem, and/or the pigeonhole principle, and/or some inequalities like Cauchy-Schwarz might be useful.