I want to map two integers A and B (A, B <= 10000) to an integer C with a function f such that f(A, B) = f(B, A) and there are no two other integers E and F such that f(E, F) = f(A, B).
I originally tried using f(A, B) = 10001*A+B, but that didn't satisfy the requirement where f(A, B) = f(B, A).