login
A070958
Numbers n such that the largest digit of n is the same as the largest digit of (sum of digits of n).
2
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 199, 200, 288, 289, 298, 300, 377, 378, 379, 387, 397, 400, 466, 467, 468, 469, 476, 486, 496, 500, 555, 556, 557, 558, 559, 565, 575, 585, 595, 600, 646, 647, 648, 649, 655, 664, 674
OFFSET
1,3
LINKS
Eric Weisstein's World of Mathematics, Digit Sum
EXAMPLE
(Largest digit of 397) = (largest digit of 3+9+7 = 19) = 9, therefore 397 is a term.
MAPLE
A070958 := proc(n) option remember: local d, k: if(n=1)then return 0:fi: for k from procname(n-1)+1 do d:=convert(k, base, 10): if(max(op(d)) = max(op(convert(add(d[j], j=1..nops(d)), base, 10))))then return k: fi: od: end: seq(A070958(n), n=1..100); # Nathaniel Johnston, May 05 2011
CROSSREFS
Cf. A107085.
Sequence in context: A080459 A093475 A032571 * A051596 A071061 A037124
KEYWORD
nonn,easy,base
AUTHOR
Reinhard Zumkeller, May 16 2002; revised May 11 2005
EXTENSIONS
Corrected by Alexandre Wajnberg, May 11 2005
STATUS
approved