Over every array of length n with values 1..k, count the disjoint blocks that are permutations of 1..k, and add it all up.
Over every array of length n with values 1..k, count the disjoint blocks that are permutations of 1..k, and add it all up.
Opens with the full question.