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