The most rare galaxy in the Universe is called a Hoag's object.
It is a single or a double-ringed galaxy around a luminous core.
There are no known forces that can form such a galaxy.
The 3 body or N body problem would only serve to tear such a galaxy into chaos.