How can I get a general function that represents a series of 1 and 0, for example :(adsbygoogle = window.adsbygoogle || []).push({});

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... and so on; the first one is not difficult: a = n mod 2; where a=1 or 0; n=1,2,3...

but if n=1 than a=2 (for the first one), and 2 is not solution

That s one of the other difficulties in that problem.

So I just need a general function for an x number of 1 (1,1,1,1...1,0,1,1,1,1,...0...). Always after a certain period of number 1 comes 0

The function must be valuable for all n; as you can see in my example when I put n=1, a=2, and that isn t solution

**Physics Forums - The Fusion of Science and Community**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# General function that represents a series of 1 and 0

Loading...

Similar Threads - General function represents | Date |
---|---|

A What separates Hilbert space from other spaces? | Jan 15, 2018 |

A Galois theorem in general algebraic extensions | Apr 29, 2017 |

Generalization of combinatorial generating functions? | Dec 31, 2014 |

Generalized ZETA function | Oct 30, 2009 |

**Physics Forums - The Fusion of Science and Community**