continued fraction
 
Magnets