A157496 Composite numbers n where the largest digit m is equal to the sum of all digits of n except for one occurrence of m.
22, 33, 44, 55, 66, 77, 88, 99, 110, 112, 121, 123, 132, 134, 143, 145, 154, 156, 165, 176, 178, 187, 189, 198, 202, 213, 220, 224, 231, 235, 242, 246, 253, 264, 268, 275, 279, 286, 297, 303, 312, 314, 321, 325, 330, 336, 341, 352, 358, 363, 369, 374, 385
Offset: 1
Examples
341 is a composite number where the largest digit is the sum of all the other digits. 330 is composite and has largest digit 3, which equals the sum of all digits of 330 except for one occurrence of 3, viz. 3+0.
Crossrefs
Cf. A002808 (composite numbers).
Programs
-
Magma
[ n: n in [2..390] | not IsPrime(n) and m eq &+S - m where m is Max(S) where S is Intseq(n, 10) ]; // Klaus Brockhaus, Apr 12 2009
Extensions
Entry revised by N. J. A. Sloane, Mar 27 2009
0 removed, 110 and 330 inserted, extended, definition clarified, second example and keyword less added by Klaus Brockhaus, Apr 12 2009