There is a sequence with the values $0, 0, 0, 0, 1, 0, 0, 0, 0, 1, \ldots$ (basically there are always four 0s followed by a 1, then it repeats).
Is there a function for this sequence?
Here are two experiments for similar sequences:
For a sequence of $0, 1, 0, 1,\ldots$ it is: $$f(x)=\frac{(-1)^{x+1}+1}{2}=x\bmod 2$$ For a sequence of $0, 0, 1, 0, 0, 1,\ldots$ it is: $$f(x)=1-(((x+1) \bmod 3)-1)^2$$ For a sequence of $0, 0, 0, 1, 0, 0, 0, 1,\ldots$ it is: $$f(x)=?$$ For a sequence of $0, 0, 0, 0, 1, 0, 0, 0, 0, 1,\ldots$ it is: $$f(x)=?$$