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!)
A154387 Composite numbers with even sum of digits. 1
4, 6, 8, 15, 20, 22, 24, 26, 28, 33, 35, 39, 40, 42, 44, 46, 48, 51, 55, 57, 60, 62, 64, 66, 68, 75, 77, 80, 82, 84, 86, 88, 91, 93, 95, 99, 105, 110, 112, 114, 116, 118, 121, 123, 125, 129, 130, 132, 134, 136, 138, 141, 143, 145, 147, 150, 152, 154, 156, 158, 161 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
15 is composite and 1 + 5 = 6 (an even number), so 15 is a term;
20 is composite and 2 + 0 = 2 (an even number), so 20 is a term.
MAPLE
sd := proc (n) options operator, arrow: add(convert(n, base, 10)[j], j = 1 .. nops(convert(n, base, 10))) end proc: a := proc (n) if isprime(n) = false and `mod`(sd(n), 2) = 0 then n else end if end proc: seq(a(n), n = 2 .. 180); # Emeric Deutsch, Jan 17 2009
MATHEMATICA
Select[Range[200], CompositeQ[#]&&EvenQ[Total[IntegerDigits[#]]]&] (* Harvey P. Dale, Aug 25 2016 *)
CROSSREFS
Intersection of A002808 and A054683.
Sequence in context: A000937 A138001 A239659 * A095299 A079250 A055397
KEYWORD
nonn,base
AUTHOR
EXTENSIONS
Replaced 45 by 46 - R. J. Mathar, Jan 12 2009
More terms from Emeric Deutsch, Jan 17 2009
STATUS
approved

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 28 07:18 EDT 2024. Contains 371235 sequences. (Running on oeis4.)