I have a pyramid whose base is a square of side length $a=120$, and whose height is also $a=120$. The projection of the summit of the pyramid on the square basis coincides with the center of the square (regular pyramid)
What is the maximal number of cubes of side length $L=5$ that we can have inside the pyramid?
I have no idea how to start. Should I try some "greedy" algorithm? Is there any smart idea to solve this problem?
Any hint would be appreciated! Thank you!
Well, you can calculate the volume of the pyramid and then divide it by the volume of the cubes:
The volume of the pyramid is $V=a^2\frac{h}{3}$ or in this case $V = 120^2\frac{120}{3}$ or $5.76 \times 10^5$ (yay calculators).
The volume of the cubes would be $V = b \cdot h \cdot w$ or in this case $V = 5 \cdot 5 \cdot 5 = 5^3$ which equals $125$.
Then, $\frac {5.76 \times 10^5}{125} = 4608$ (again, yay calculators!) meaning, of course, that you can fit 4608 cubes.
Hope this helps!