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