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”).
%I #7 Dec 16 2019 16:51:06
%S 0,1,2,3,4,5,6,7,8,9,10,19,20,30,40,50,60,70,80,90,91,100,109,118,119,
%T 127,128,129,136,137,138,139,145,146,147,148,149,154,155,156,157,158,
%U 159,163,164,165,166,167,168,169,172,173,174,175,176,177,178,179,181
%N Numbers n such that n and the sum of the digits of n have at least one digit in common.
%H Harvey P. Dale, <a href="/A108191/b108191.txt">Table of n, a(n) for n = 1..1000</a>
%e Sum of digits of 19 is 10 (1+9=10); "19" and "10" share the digit "1".
%t Select[Range[0,200],Length[Intersection[IntegerDigits[#],IntegerDigits[ Total[ IntegerDigits[ #]]]]]>0&] (* _Harvey P. Dale_, Dec 16 2019 *)
%K base,easy,nonn
%O 1,3
%A _Eric Angelini_, Jun 15 2005