A number of spheres with radius 1 are being placed in the form of a square pyramid. First, there is a layer in the form of a square with n2 spheres. On top of that layer comes the next layer with (n\minus{}1)^2 spheres, and so on. The top layer consists of only one sphere. Compute the height of the pyramid. geometry3D geometrypyramidsphere