I'm trying to solve the following problem:
Give an example of $Y = A \cup B\cup C$ such that $A,B,C$ are open subsets of $Y$ and the reduced homology groups of $A,B,C, A\cap B, A\cap C, B \cap C, A \cap B \cap C$ are all trivial, the sets $A \cap B, A \cap C , B \cap C$ are non-empty but $H_1 (Y)$ is not trivial. Show that $H_n (Y)$ has to be trivial for $n \geqslant 2$.
It feels like the second part should follow from some exact sequence, but I've tried Mayer-Vietoris to no avail (it's likely i'm missing something though?). As for the example I've tried different partitions of $S^1$ or the torus but I couldn't get it to work. I don't think I have a good enough understanding of what trivial homology groups imply geometrically to come up with an example, other than randomly stumbling onto one. Any help's appreciated.