login
The starting points of runs of consecutive terms with the same parity in A014418 (n represented in Greedy Catalan Base).
3

%I #9 Jun 25 2014 13:11:08

%S 0,1,2,3,4,6,7,8,9,11,12,13,14,15,16,17,18,20,21,22,23,25,26,27,28,29,

%T 30,31,32,34,35,36,37,39,40,41,42,43,44,45,46,48,49,50,51,53,54,55,56,

%U 57,58,59,60,62,63,64,65,67,68,69,70,71,72,73,74,76,77,78,79,81

%N The starting points of runs of consecutive terms with the same parity in A014418 (n represented in Greedy Catalan Base).

%C The starting points of runs in A244220 and A244221.

%C Thus, after zero, the positions where A014418(n-1) <> A014418(n) modulo 2. (Same is true for A244161).

%C One more than the partial sums of A244226.

%H Antti Karttunen, <a href="/A244219/b244219.txt">Table of n, a(n) for n = 0..4121</a>

%F a(0) = 0, a(n) = 1 + A244218(n-1).

%o (Scheme) (define (A244219 n) (if (zero? n) 0 (+ 1 (A244218 (- n 1)))))

%Y Cf. A014418, A244218, A244161, A244220, A244221, A244226.

%K nonn

%O 0,3

%A _Antti Karttunen_, Jun 23 2014