L-adic properties of the partition function