Partition function
n
calculate
reset
valore