Imagine two positive integers A and B. I want to combine these two into a single integer C.
There can be no other integers D and E which combine to C. So combining
f(a, b) = s(a+b) + a, where s(n) = n*(n+1)/2
s(a+b+1)-s(a+b) = a+b+1
< a. I did not understand what You mean by:
should always yield an integer on either the positive or the negative side of integers
How can I write (greater than), (less than) characters in this forum?