login
Numbers containing an even digit.
4

%I #23 Sep 08 2022 08:44:35

%S 0,2,4,6,8,10,12,14,16,18,20,21,22,23,24,25,26,27,28,29,30,32,34,36,

%T 38,40,41,42,43,44,45,46,47,48,49,50,52,54,56,58,60,61,62,63,64,65,66,

%U 67,68,69,70,72,74,76,78,80,81,82,83,84,85,86,87,88,89,90,92,94,96,98,100

%N Numbers containing an even digit.

%C Or, numbers whose product of digits is even.

%C Complement of A014261; A196563(a(n)) > 0. - _Reinhard Zumkeller_, Oct 04 2011

%H Reinhard Zumkeller, <a href="/A007928/b007928.txt">Table of n, a(n) for n = 1..10000</a>

%H F. Smarandache, <a href="http://www.gallup.unm.edu/~smarandache/OPNS.pdf">Only Problems, Not Solutions!</a>, Xiquan Publ., Phoenix-Chicago, 1993.

%H <a href="/index/Ar#10-automatic">Index entries for 10-automatic sequences</a>.

%F a(n) ~ n. - _Charles R Greathouse IV_, Sep 07 2012

%o (Magma) [ n : n in [0..129] | IsEven(&*Intseq(n,10)) ];

%o (Haskell)

%o import Data.List (findIndices)

%o a007928 n = a007928_list !! (n-1)

%o a007928_list = findIndices (> 0) a196563_list

%o -- _Reinhard Zumkeller_, Oct 04 2011

%o (PARI) is(n)=vecmin(Set(digits(n)%2))==0 \\ _Charles R Greathouse IV_, Feb 14 2017

%K nonn,base,easy

%O 1,2

%A R. Muller