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