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