Yesterday, nobody contributed anything. :-(
The official answer is:
2 ^ abs(-(x * (x + 1)) - 1)