Homotopy and homology groups of the n-dimensional Hawaiian earring