Least k such that the first k terms of the Kolakoski sequence (A000002) contain n more 1's than 2's.

A022327

Least k such that the first k terms of the Kolakoski sequence (A000002) contain n more 1's than 2's.

Terms

    a(0) =1a(1) =32a(2) =257a(3) =798a(4) =825a(5) =858a(6) =1127a(7) =1398a(8) =1497a(9) =1524a(10) =1533a(11) =193140a(12) =193173a(13) =194036a(14) =194045a(15) =195378a(16) =196371a(17) =196380a(18) =198571a(19) =198634a(20) =199149a(21) =199554a(22) =199861a(23) =200286a(24) =201759a(25) =201786a(26) =201795a(27) =205330a(28) =205687a(29) =205714

External references