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