the math is
 
Gourdes