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”).

A341003
Numbers whose sum of even digits and sum of odd digits differ by 2.
2
2, 11, 20, 101, 110, 114, 123, 132, 136, 141, 145, 154, 158, 163, 167, 176, 185, 189, 198, 200, 213, 231, 312, 316, 321, 334, 338, 343, 356, 361, 365, 378, 383, 387, 411, 415, 433, 451, 514, 518, 536, 541, 558, 563, 581, 585, 613, 617, 631, 635, 653, 671, 716, 738, 761, 783
OFFSET
1,1
LINKS
MATHEMATICA
Select[Range[1000], Abs[Plus @@ Select[(d = IntegerDigits[#]), OddQ] - Plus @@ Select[d, EvenQ]] == 2 &] (* Amiram Eldar, Feb 02 2021 *)
CROSSREFS
Cf. A036301 (sums are equal), A341002 to A341010 (sums differ by 1 to 9).
Sequence in context: A146087 A064975 A115095 * A061907 A052216 A094629
KEYWORD
base,nonn
AUTHOR
Eric Angelini and Carole Dubois, Feb 02 2021
STATUS
approved