There's no need to cross-post on the same forum.
Here -> How print this series and what is the logic behind this binary series.