login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A054683 Numbers n such that sum of digits is even. 14
0, 2, 4, 6, 8, 11, 13, 15, 17, 19, 20, 22, 24, 26, 28, 31, 33, 35, 37, 39, 40, 42, 44, 46, 48, 51, 53, 55, 57, 59, 60, 62, 64, 66, 68, 71, 73, 75, 77, 79, 80, 82, 84, 86, 88, 91, 93, 95, 97, 99, 101, 103, 105, 107, 109, 110, 112, 114, 116, 118, 121, 123, 125, 127, 129, 130 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

COMMENTS

Union of A179082 and A179084; A179081(a(n)) = 0. - Reinhard Zumkeller, Jun 28 2010

LINKS

R. Zumkeller, Table of n, a(n) for n = 1..1000

Index entries for 10-automatic sequences.

Index entries for Colombian or self numbers and related sequences

FORMULA

a(n) = n * 2 for the first 5 numbers; a(n) = n * 2 + 1 for the second 5 numbers (recurrence)

I.e. for n > 0, a(n + 10) = a(n) + 20. - David A. Corneth, Jun 05 2016

EXAMPLE

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

MATHEMATICA

Select[Range[0, 200], EvenQ[Total[IntegerDigits[#]]]&] (* Harvey P. Dale, Jan 04 2015 *)

PROG

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

(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

(Python)

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

CROSSREFS

Cf. A054684, A270264.

Sequence in context: A128403 A205556 A051244 * A327255 A287777 A249099

Adjacent sequences:  A054680 A054681 A054682 * A054684 A054685 A054686

KEYWORD

nonn,easy,base

AUTHOR

Odimar Fabeny, Apr 19 2000

EXTENSIONS

More terms from James A. Sellers, Apr 19 2000

Example corrected by David A. Corneth, Jun 05 2016

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified October 16 03:37 EDT 2019. Contains 328040 sequences. (Running on oeis4.)