- #1
Emilijo
- 36
- 0
How can I get a general function f(m,n) that represents a series of 1 and 0, for example :
1,0,1,0,1,0,1,0...; but also
1,1,0,1,1,0,1,1,0...;
1,1,1,0,1,1,1,0,1...
where m is period and n nth number in certain period. In example two:
m=3 (...1,1,0...) f(3,4)=1
The function must be composed only by elementary function
1,0,1,0,1,0,1,0...; but also
1,1,0,1,1,0,1,1,0...;
1,1,1,0,1,1,1,0,1...
where m is period and n nth number in certain period. In example two:
m=3 (...1,1,0...) f(3,4)=1
The function must be composed only by elementary function