Say you list the positive integers in a triangle, then flip it left-to-right. Given a number, output the number it's sent to. This is a self-inverse mapping. 1 1 2 3 3 2 4 5 6 <---> 6 5 4 7 8 ...