Originally Posted by

**Emilijo** *How to find function that have values:*

*f(0)=0, f(1)=0, f(2)=0, f(3)=0,... for period T=1*

*f(0)=0, f(1)=1, f(2)=0, f(3)=1,... for period T=2*

*f(0)=0, f(1)=1, f(2)=1, f(3)=0, f(4)=1, f(5)=1, f(6)=0,... for period T=3*

*f(0)=0, f(1)=1, f(2)=1, f(3)=1, f(4)=0, f(5)=1, f(6)=1, f(7)=1, f(8)=0,... for T=4*

*f(0)=0, f(1)=1, f(2)=1,..., f(n-1)=1, f(n)=0, f(n+1)=1,...,f(2n)=0,f(2n+1)=1,... T=n*

or shortly:

0000000000000 T=1

0101010101010 T=2

0110110110110 T=3

0111011101110 T=4

...

*So, I need function in two variables f(n,T)*

*The function must NOT have MOD, CEILING or FLOOR function.*