a(1)=1, a(n) is the smallest integer > a(n-1) such that a(n) is even if k(n)=1, a(n) is odd if k(n)=2, where k(n) denotes the n-th term of the Kolakoski sequence (A000002).
A079726
a(1)=1, a(n) is the smallest integer > a(n-1) such that a(n) is even if k(n)=1, a(n) is odd if k(n)=2, where k(n) denotes the n-th term of the Kolakoski sequence (A000002).
Terms
- a(0) =1a(1) =2a(2) =4a(3) =5a(4) =7a(5) =8a(6) =9a(7) =10a(8) =12a(9) =13a(10) =14a(11) =16a(12) =17a(13) =19a(14) =20a(15) =21a(16) =23a(17) =24a(18) =26a(19) =27a(20) =28a(21) =29a(22) =31a(23) =32a(24) =33a(25) =34a(26) =36a(27) =37a(28) =39a(29) =40
External references
- oeis: A079726