0,3

a(n) = Number of "balanced odious numbers" (A268415) in range [0..n].

Antti Karttunen, Table of n, a(n) for n = 0..16384

Vladimir Shevelev, Two analogs of Thue-Morse sequence, arXiv:1603.04434 [math.NT], 2016.

a(0) = 0; for n >= 1, a(n) = A268411(n) + a(n-1).

Other identities. For all n >= 1:

a(A268415(n)) = n.

a(n) = n - A268383(n).

(Scheme, with memoizing-macro definec)

(definec (A268382 n) (if (zero? n) n (+ (A268411 n) (A268382 (- n 1)))))

Partial sums of A268411.

Cf. A268415, A268383.

Sequence in context: A236346 A306890 A116549 * A107079 A025528 A255338

Adjacent sequences: A268379 A268380 A268381 * A268383 A268384 A268385

nonn

Antti Karttunen, Feb 05 2016

approved