Permutation statistics and partitions