login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A054683 Numbers whose sum of digits is even. 19

%I #45 Nov 20 2022 02:03:45

%S 0,2,4,6,8,11,13,15,17,19,20,22,24,26,28,31,33,35,37,39,40,42,44,46,

%T 48,51,53,55,57,59,60,62,64,66,68,71,73,75,77,79,80,82,84,86,88,91,93,

%U 95,97,99,101,103,105,107,109,110,112,114,116,118,121,123,125,127,129,130

%N Numbers whose sum of digits is even.

%C Union of A179082 and A179084; A179081(a(n)) = 0. - _Reinhard Zumkeller_, Jun 28 2010

%C Integers with an even number of odd digits. - _Bernard Schott_, Nov 18 2022

%H Reinhard Zumkeller, <a href="/A054683/b054683.txt">Table of n, a(n) for n = 1..1000</a>

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

%H <a href="/index/Coi#Colombian">Index entries for Colombian or self numbers and related sequences</a>

%F a(n) = 2*n for the first 5 terms; a(n) = 2*n + 1 for the next 5 terms (recurrence).

%F I.e., for n > 0, a(n + 10) = a(n) + 20. - _David A. Corneth_, Jun 05 2016

%e 0, 2, 4, 6, 8, 11 (2), 13 (4), 15 (6), 17 (8), 19 (10), 20 (2), 22 (4) and so on.

%t Select[Range[0,200],EvenQ[Total[IntegerDigits[#]]]&] (* _Harvey P. Dale_, Jan 04 2015 *)

%o (PARI) is(n)=my(d=digits(n));sum(i=1,#d,d[i])%2==0 \\ _Charles R Greathouse IV_, Aug 09 2013

%o (PARI) a(n) = n--; m = 10*(n\5); s=sumdigits(m); m + (1-(s-1)%2) + 2*(n%5) \\ _David A. Corneth_, Jun 05 2016

%o (Python)

%o A054683_list = [i for i in range(10**3) if not sum(int(d) for d in str(i)) % 2] # _Chai Wah Wu_, Mar 17 2016

%Y Cf. A179081, A270264.

%Y Subsequences: A014263, A099814, A179082, A179084.

%Y Similar: A054684 (with an odd number of odd digits), A356929 (with an even number of even digits).

%K nonn,easy,base

%O 1,2

%A _Odimar Fabeny_, Apr 19 2000

%E More terms from _James A. Sellers_, Apr 19 2000

%E Example corrected by _David A. Corneth_, Jun 05 2016

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified March 29 02:23 EDT 2024. Contains 371264 sequences. (Running on oeis4.)