OFFSET
1
COMMENTS
Compare with the generation of the Thue-Morse sequence T=A010060 from T(2n-1)=T(n), T(2n)=1-T(n), T(1)=0.
Other zero-one sequences generated in this manner:
from triangular numbers: A189011
from squares: A188973
from pentagonal numbers: A189014
from hexagonal numbers: A189212
from cubes: A189008
from primes: A189141
from (3n-1): A189097
from (3n-2): A188967
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
EXAMPLE
MATHEMATICA
PROG
(Haskell)
import Data.List (transpose)
a188967 n = a188967_list !! (n-1)
a188967_list = 0 : zipWith ($)
(cycle [(1 -) . a188967, (1 -) . a188967, a188967])
(concat $ transpose [[1, 3 ..], [2, 4 ..], [2 ..]])
-- Reinhard Zumkeller, May 18 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Apr 14 2011
STATUS
approved