The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A304368 Numbers n with additive persistence = 3. 5
199, 289, 298, 379, 388, 397, 469, 478, 487, 496, 559, 568, 577, 586, 595, 649, 658, 667, 676, 685, 694, 739, 748, 757, 766, 775, 784, 793, 829, 838, 847, 856, 865, 874, 883, 892, 919, 928, 937, 946, 955, 964, 973, 982, 991, 1099, 1189, 1198, 1279, 1288, 1297 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
First deviation from A166459 is at a(101); a(101) = 1999, A166459(101) = 2089.
LINKS
Eric Weisstein's World of Mathematics, Additive Persistence.
FORMULA
A031286(a(n)) = 3.
EXAMPLE
Repeatedly taking the sum of digits starting with 199 gives 19, 10, and then 1. There are three steps, so the additive persistence is 3, and 199 is a member. - Michael B. Porter, May 16 2018
MATHEMATICA
Select[Range@ 1300, Length@ FixedPointList[Total@ IntegerDigits@ # &, #] == 5 &] (* Michael De Vlieger, May 14 2018 *)
PROG
(PARI) nb(n) = {my(nba = 0); while (n > 9, n = sumdigits(n); nba++); nba; }
isok(n) = nb(n) == 3; \\ Michel Marcus, May 13 2018
CROSSREFS
Cf. A031286.
Cf. Numbers with additive persistence k: A304366 (k=1), A304367 (k=2), A304373 (k=4).
Sequence in context: A227517 A142232 A166459 * A190355 A213078 A142682
KEYWORD
nonn,base
AUTHOR
Jaroslav Krizek, May 11 2018
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 5 08:30 EDT 2024. Contains 373102 sequences. (Running on oeis4.)