The function f(x) returns -1 for particular groups of numbers and 1 for others. It seems to alternate the output depending on the value of x.

