4 if the smaller circle rolls on the outside of the larger circle; 2 if it rolls on the inside.

Imagine you are rolling a wheel by pushing it along the equator of the earth. Suppose the circumference of the wheel is one third of that of the earth. By the time you return to your starting point, the wheel finishes 3 revolutions relative to you. But do not forget you yourself also finishes 1 revolution in the same direction. As a result, the number of absolute revolutions is 3+1=4.

But if the small circle is rolling inside the large circle, the answer is then 3-1=2, because in this case the wheel makes a counter-revolution as you walk once around.

lib/config.php:156: Notice: Undefined variable: accept

lib/DbaDatabase.php:134: Warning: dba_replace() [<a href='function.dba-replace'>function.dba-replace</a>]: You cannot perform a modification to a database without proper access