(no title)
bazzargh | 1 month ago
... z = (x+y+1)(x+y)/2 + y - but you have to sort x,y first to get the order independence you wanted. This function is famously used in the argument that the set of integers and the set of rationals have the same cardinality.
noduerme|1 month ago
bazzargh|1 month ago