This is possible with abelian groups for any $n$; see [this answer](https://mathoverflow.net/a/10194/75) to a very similar question.