Connections between number theory, algebra and physics