Check out the video and the description from the Triple Gear product page on Shapeways.

In this unusual mechanism three gears mesh together in pairs, and yet they can turn!

If you take three ordinary gears and put them together so that each
gear meshes with the other two, then none of the gears can turn because
neighbouring gears must turn in opposite directions. Triple gear avoids
this problem by having the three “gears” arranged like linked rings –
the gears then rotate along skew axes, and the opposite direction rule
no longer applies (although see also Oskar van Deventer’s Magic Gears for another possible solution).

This is joint work with Saul Schleimer. We were inspired by another of Oskar’s designs, his Knotted Gear,
which consists of two linked rings that gear with each other, and of
course we wondered if it would be possible to do three linked rings!