login
Numbers having more odd than even digits when written in base 10.
4

%I #12 Jul 04 2022 10:10:41

%S 1,3,5,7,9,11,13,15,17,19,31,33,35,37,39,51,53,55,57,59,71,73,75,77,

%T 79,91,93,95,97,99,101,103,105,107,109,110,111,112,113,114,115,116,

%U 117,118,119,121,123,125,127,129,130,131,132,133,134,135,136,137,138,139,141,143,145,147,149,150,151,152,153,154,155

%N Numbers having more odd than even digits when written in base 10.

%o (PARI) select( {is_A352547(n)=vecsum(n=digits(n)%2)*2>#n}, [0..155])

%o (Python)

%o def ok(n): return len(s:=str(n)) > 2*sum(1 for c in s if c in "02468")

%o print([k for k in range(156) if ok(k)]) # _Michael S. Branicky_, Jul 03 2022

%Y Cf. A196563, A196564.

%Y Cf. A072600 (same in base 2).

%Y Cf. A227870, A352546 (numbers with fewer odd than even decimal digits).

%K nonn,base

%O 1,2

%A _M. F. Hasler_, Jul 03 2022