Fitting spheres in a square

No.11973696 ViewReplyOriginalReport
I need to know what the maximum radius of spheres which fit together in a square is.

I need to optimally fit, 2,4,6,8 (equal) spheres in a square and I need to know their radius compared to the edge of the square.

I know this is probably easy, but I'm a mathlet.