cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A049321 Primitive Chacon sequence: fixed under 0->0012, 1->12, 2->012.

Original entry on oeis.org

0, 0, 1, 2, 0, 0, 1, 2, 1, 2, 0, 1, 2, 0, 0, 1, 2, 0, 0, 1, 2, 1, 2, 0, 1, 2, 1, 2, 0, 1, 2, 0, 0, 1, 2, 1, 2, 0, 1, 2, 0, 0, 1, 2, 0, 0, 1, 2, 1, 2, 0, 1, 2, 0, 0, 1, 2, 0, 0, 1, 2, 1, 2, 0, 1, 2, 1, 2, 0, 1, 2, 0, 0, 1, 2, 1, 2, 0, 1, 2, 1, 2, 0, 1, 2, 0, 0, 1, 2, 1, 2, 0, 1, 2, 0, 0, 1, 2, 0, 0, 1, 2, 1, 2, 0
Offset: 0

Views

Author

Keywords

Comments

This sequence was introduced by Ferenczi in his 1995 paper. It has the property that it maps to the non-primitive Chacon sequence A049320 via the letter-to-letter map 0->0, 1->1, 2->0. See Ferenczi's paper, page 281. - Michel Dekking, Oct 24 2019

Examples

			beta(0001000...) = beta(00)beta(00)beta(01)beta(10)beta(00)beta(00)... = 001200.... - _Michel Dekking_, Oct 24 2019
		

Crossrefs

Programs

  • Haskell
    a049321 n = a049321_list !! n
    a049321_list = 0 : 0 : 1 : 2 : f [0,0,1,2] where
       f xs = drop (length xs) ys ++ f ys where
         ys = concatMap ch xs
         ch 0 = [0,0,1,2]; ch 1 = [1,2]; ch 2 = [0,1,2]
    -- Reinhard Zumkeller, Aug 14 2013
  • Mathematica
    Nest[Flatten[# /. {0 -> {0, 0, 1, 2}, 1 -> {1, 2}, 2 -> {0, 1, 2}}]&, {0}, 4] (* Jean-François Alcover, Oct 05 2016 *)

Formula

a(n) = beta(0 A049320(n)), where beta is the 2-block map given by 00->0, 10->2, 01->1. - Michel Dekking, Oct 24 2019

Extensions

More terms from Larry Reeves (larryr(AT)acm.org), Apr 12 2000