The work performed by a function f:{1,...,n} -> {1,...,n} is defined to be work(f) = Sum_{i=1..n} |i - f(i)|; a(n) is equal to sum(work(f)) where the sum is over all functions f:{1,...,n}->{1,...,n}.

A111868

The work performed by a function f:{1,...,n} -> {1,...,n} is defined to be work(f) = Sum_{i=1..n} |i - f(i)|; a(n) is equal to sum(work(f)) where the sum is over all functions f:{1,...,n}->{1,...,n}.

Terms

    a(0) =0a(1) =4a(2) =72a(3) =1280a(4) =25000a(5) =544320a(6) =13176688a(7) =352321536a(8) =10331213040a(9) =330000000000

External references