This is possible with abelian groups for any $n$; see this answer to a very similar question.
Eric Wofsey
- 31.2k
- 2
- 115
- 151