Question: alternating series

Howdy

would like to know how to generate alternating series.

eg, we have an infinite (large number) number of coins all Heads up.

seq(H,i=100)=HHHHHHHHH.......

Now we flip every 2nd coin (to tails), eg HTHTHT.......

then flip every 3rd coin, eg HTTTHH........

what does it coverge to or does it....?

How to simulate this in maple?

I guess we could also use binary code.

 

Please Wait...