(−1)^(floor(1/x)) (1/(floor(1/x)) +(2(floor(1/x)) +1)(x-1/(floor(1/x)))) for x = 0 to 1