Genus degree formula