Exact partition function of the Potts model on the Sierpinski gasket and the Hanoi lattice | Synapse