A074292 Dominant digit in successive groups of 3 from the Kolakoski sequence (A000002).
2, 1, 2, 2, 1, 1, 2, 1, 2, 1, 1, 2, 2, 1, 2, 1, 1, 2, 2, 1, 2, 2, 1, 1, 2, 1, 2, 2, 1, 2, 2, 1, 1, 2, 1, 2, 2, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 2, 2, 1, 2, 2, 1, 1, 2, 1, 2, 2, 1, 1, 2, 1, 2, 1, 1, 2, 1, 2, 2, 1, 2, 2, 1, 1, 2, 1, 1, 2, 2, 1, 2, 1, 1, 2, 1
Offset: 1
Keywords
Examples
Kolakoski begins (1,2,2), (1,1,2), (1,2,2), (1,2,2), so this begins 2,1,2,2.
Links
- Nathaniel Johnston, Table of n, a(n) for n = 1..10001
- Claude Lenormand, Deux transformations sur les mots, Preprint, 5 pages, Nov 17 2003. Apparently unpublished. This is a scanned copy of the version that the author sent to me in 2003. - _N. J. A. Sloane_, Oct 02 2018
Programs
-
Maple
A074292 := proc(n) A000002(3*n-2)+A000002(3*n-1)+A000002(3*n)-3 ; end proc: seq(A074292(n),n=1..50) ; # R. J. Mathar, Nov 15 2014
-
Mathematica
OK = {1, 2, 2}; Do[OK = Join[OK, {1+Mod[n-1, 2]}], {n, 3, 1000}, {OK[[n]]}]; If[Count[#, 1] > 1, 1, 2]& /@ Partition[OK, 3] (* Jean-François Alcover, Nov 13 2014 *)
Formula
Extensions
More terms from Ray Chandler, Nov 16 2003
Offset corrected by Jean-Christophe Hervé, Oct 11 2014
Comments