1,4

Plays the role of an inverse function to A093505.

Table of n, a(n) for n=1..73.

a(n) = A000069(n) - n.

a(5) = 3 because the fifth odious number = 8 and floor(8/2 - 1/2) = 3. Also 8 - 5 = 3.

(PARI) a(n)=n-1-hammingweight(n-1)%2 \\ Charles R Greathouse IV, Mar 29 2013

Cf. A000069.

Sequence in context: A131948 A134636 A088564 * A078796 A201929 A079789

Adjacent sequences: A161557 A161558 A161559 * A161561 A161562 A161563

nonn,easy

Jaroslav Krizek, Jun 13 2009

approved