10331213040domain: NAppears in sequencesThe 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}.at n=8A111868(n^2-n)*3^n.at n=16A128797