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!)
A131418 Numbers n such that Sum_digits(n)=Sum_digits[n+Sum_digits(n)], with n>=0. 2
0, 9, 18, 27, 36, 45, 54, 63, 72, 81, 108, 117, 126, 135, 144, 153, 162, 171, 207, 216, 225, 234, 243, 252, 261, 279, 306, 315, 324, 333, 342, 351, 369, 378, 405, 414, 423, 432, 441, 459, 468, 477, 504, 513, 522, 531, 549, 558, 567, 576, 603, 612, 621, 639 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Conjecture: all terms are divisible by 9. - Harvey P. Dale, Mar 28 2019
LINKS
EXAMPLE
n=315 --> 3+1+5=9 --> 315+9=324 --> 3+2+4=9.
n=873 --> 8+7+3=18 --> 873+18=891 --> 8+9+1=18.
MAPLE
P:=proc(n) local a, i, k, w; for i from 0 by 1 to n do w:=0; k:=i; while k>0 do w:=w+k-(trunc(k/10)*10); k:=trunc(k/10); od; a:=w; k:=i+w; w:=0; while k>0 do w:=w+k-(trunc(k/10)*10); k:=trunc(k/10); od; if a=w then print(i); fi; od; end: P(1000);
MATHEMATICA
Select[Range[0, 700], Total[IntegerDigits[#]]==Total[IntegerDigits[#+ Total[ IntegerDigits[ #]]]]&] (* Harvey P. Dale, Mar 28 2019 *)
PROG
(PARI) isok(n) = my(sn = sumdigits(n)); sn == sumdigits(n+sn); \\ Michel Marcus, May 10 2019
CROSSREFS
Sequence in context: A111708 A248050 A044052 * A249605 A130692 A043453
KEYWORD
easy,nonn,base
AUTHOR
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 June 8 10:34 EDT 2023. Contains 363163 sequences. (Running on oeis4.)