Greatest common division