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!)
A259043 a(n) = if n < 10 then n else a(floor(n/10) + n mod 10) + n mod 10. 2
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 3, 5, 7, 9, 11, 13, 15, 17, 10, 2, 4, 6, 8, 10, 12, 14, 16, 9, 12, 3, 5, 7, 9, 11, 13, 15, 8, 11, 14, 4, 6, 8, 10, 12, 14, 7, 10, 13, 16, 5, 7, 9, 11, 13, 6, 9, 12, 15, 18, 6, 8, 10, 12, 5, 8, 11, 14, 17, 20, 7, 9, 11, 4, 7 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
COMMENTS
a(A259046(n)) = n and a(m) != n for m < A259046(n).
LINKS
PROG
(Haskell)
a259043 x = if x < 10 then x else a259043 (x' + d) + d
where (x', d) = divMod x 10
(PARI) a(n) = if (n<10, n, my(u=n%10); a(n\10 + u) + u); \\ Michel Marcus, Jan 23 2022
CROSSREFS
Sequence in context: A360075 A101337 A135208 * A156207 A061486 A264600
KEYWORD
nonn,base
AUTHOR
Reinhard Zumkeller, Jun 17 2015
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 August 15 03:01 EDT 2024. Contains 375172 sequences. (Running on oeis4.)