Suppose the space X is the union of open sets A1,⋯,An such that each intersection Ai1∩⋯∩Aik is either empty or has trivial reduced homology groups. Show that Hi(X)=0 for i≥n−1, and give an example showing this inequality is best possible, for each n.