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!)
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. 2
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 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
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.
PROG
(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
CROSSREFS
Cf. A002808 (composite numbers).
Sequence in context: A252078 A342445 A337163 * A096768 A157529 A165932
KEYWORD
nonn,base,less
AUTHOR
Parthasarathy Nambi, Mar 01 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
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 May 10 01:03 EDT 2024. Contains 372354 sequences. (Running on oeis4.)