What is the mathematical set function that can satisfy the following
if X = (1, 2, 3, 4, 5), Y = (1, 3, 4, 2, 5), Z = (1, 1, 3, 2, 5);
Then
F(X) = F(Y) ≠ F(Z)
what function "F" can be used to check that a specific known set is equal to another set regardless of the order of its values.
I hope I could explain it enough
As an example, I thought of the "Sum" function for the range from 1 to 4 but:
Sum(1,2,3,4) will be equal to Sum(2,2,3,3)
Thanks
What you are looking at here are not sets but (presumably finite) sequences, or tuples. Sets don't have repeated elements, and the elements in a set are not in any particular order. To write a tuple we use parentheses instead of curly braces, so your examples would be $(1,2,3,4,5)$, $(1,1,3,2,5)$, etc.
You can assign an integer to any tuple of positive integers that uniquely determines the tuple. Namely, let $p_1,p_2,\ldots$ be the primes in order and let $(a_1,\ldots,a_n)$ be the tuple, and define $$F(a_1,\ldots,a_n)=p_1^{a_1}p_2^{a_2}\cdots p_n^{a_n}$$ Then two tuples will be equal if and only if the associated integers are equal, by unique factorization of integers.
Edit: I noticed that in your post you said you want to ignore the order of the elements. In that case you could do instead $$F(a_1,\ldots,a_n)=p_{a_1}p_{a_2}\cdots p_{a_n}$$