OFFSET
0,4
COMMENTS
A083058(n)+1 gives a lower bound for nonzero terms, n-1 an upper bound.
LINKS
MATHEMATICA
a[n_] := Module[{k}, For[k = n - Floor[Log[2, n]] - 1, k < n, k++, If[n == k + DigitCount[k, 2, 1], Return[k]]]; 0];
a /@ Range[0, 1000]; (* Jean-François Alcover, Nov 28 2020 *)
PROG
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Aug 09 2013
STATUS
approved