Which continuous function of n variables between 1 to n takes maximum value when variables are permutations of 1,2,3...n?

37 Views Asked by At

I need a function of the form

f(x1,x2,...,xn)
where 0 <= xi <= n

such that a global optimum of f has variable values being permutations of {1,2,3...,n).

Is there such a function?