Generalizations of Thomaes Formula for Zn Curves