OFFSET
1,4
COMMENTS
Plays the role of an inverse function to A093505.
FORMULA
a(n) = A000069(n) - n.
EXAMPLE
a(5) = 3 because the fifth odious number = 8 and floor(8/2 - 1/2) = 3. Also 8 - 5 = 3.
PROG
(PARI) a(n)=n-1-hammingweight(n-1)%2 \\ Charles R Greathouse IV, Mar 29 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Jaroslav Krizek, Jun 13 2009
STATUS
approved