In a question I asked on algorithms with time complexity of $f(x) = n^n$ I was told that enumerating the number of strings that can be formed from a string of length $n$ qualifies.
I.e the sum of all permutations of $n$ from $n$ to $0$ is $n^n$
$\sum ^n_{i=0} nPi$ $= n^n$
Can I please see an easy to understand derivation of that formula.
EDIT The above identity is wrong. I just tested it. Can I get a derivation of the formula for the sum of permutations.