pull down to refresh

You're partially correct, they're interlinked somewhat.

Partition functions also appear in quantum field theory and statistical mechanics — where they count possible states of a system at equilibrium.

In physics: partition functions count possible microstates.

In number theory: they count combinatorial decompositions of integers.