Let n be a positive integer. Let N={1,2,…,n}. A map f:N→N is said to be n-potent if each i∈N satisfies fn−1(i)=n. (As usual, fk denotes the k-fold composition f∘f∘⋯∘f.)
Prove that the # of n-potent maps f:N→N is nn−2.
[Hint: What do these n-potent maps have to do with trees?]