OFFSET
1,1
LINKS
T. D. Noe, Table of n, a(n) for n = 1..7555 (numbers up to 2^14)
Jason Bell, Thomas Finn Lidbetter, Jeffrey Shallit, Additive Number Theory via Approximation by Regular Languages, arXiv:1804.07996 [cs.FL], 2018.
Thomas Finn Lidbetter, Counting, Adding, and Regular Languages, Master's Thesis, University of Waterloo, Ontario, Canada, 2018.
EXAMPLE
8 is present because '1000' contains 3 '0's and 1 '1': 3 >= 1;
9 is present because '1001' contains 2 '0's and 2 '1's: 2 >= 2.
MATHEMATICA
Select[Range[150], DigitCount[#, 2, 0]>=DigitCount[#, 2, 1]&] (* _Harvey P. Dale_, May 09 2012 *)
PROG
(Haskell)
a072602 n = a072602_list !! (n-1)
a072602_list = filter ((>= 0) . a037861) [1..]
-- _Reinhard Zumkeller_, Mar 31 2015
(PARI) is(n)=2*hammingweight(n)<=exponent(n)+1 \\ _Charles R Greathouse IV_, Apr 18 2020
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
_Reinhard Zumkeller_, Jun 23 2002
EXTENSIONS
Edited by _N. J. A. Sloane_, Jun 23 2009
STATUS
approved