Algorithm for a gear-train problem | IBM Journals & Magazine | IEEE Xplore