login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A107743
Numbers m such that m+(digit sum of m) is a composite number.
3
2, 3, 4, 5, 6, 7, 8, 9, 12, 15, 17, 18, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 33, 36, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 54, 55, 57, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 72, 74, 75, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 93
OFFSET
1,1
COMMENTS
Complement of A047791.
LINKS
EXAMPLE
A062028(21)=21+(2+1)=24=2*2*2*3, therefore 21 is a term.
MATHEMATICA
Select[Range[100], CompositeQ[#+Total[IntegerDigits[#]]]&] (* Harvey P. Dale, Oct 12 2016 *)
PROG
(Haskell)
a107743 n = a107743_list !! (n-1)
a107743_list = filter ((== 0) . a010051' . a062028) [1..]
-- Reinhard Zumkeller, Sep 27 2014
CROSSREFS
Cf. A010051.
Sequence in context: A322511 A171827 A322002 * A116066 A261874 A334929
KEYWORD
nonn,base
AUTHOR
Reinhard Zumkeller, May 23 2005
STATUS
approved