The OEIS is supported by the many generous donors to the OEIS Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A240848 Sum of n, digitsum(n) and number of digits of n. 1
 1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 35, 37, 39, 41, 43, 45, 47, 49, 51, 53, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 57, 59, 61, 63, 65, 67, 69, 71, 73, 75, 68, 70, 72, 74, 76, 78 (list; graph; refs; listen; history; text; internal format)
 OFFSET 0,2 COMMENTS Difference between two consecutive terms is never greater than 2. Difference is less than zero when n is a multiple of 10. LINKS Robert Israel, Table of n, a(n) for n = 0..10000 FORMULA a(n) = A000027(n) + A007953(n) + A055642(n). EXAMPLE a(12) = 17 because n=12, sum of digits of n is 3, number of digits of n is 2, therefore 12 + 3 + 2 = 17. MAPLE f:= proc(n) local L; L:= convert(n, base, 10); n + nops(L) + convert(L, `+`) end proc: map(f, [\$0..100]); # Robert Israel, Mar 04 2022 PROG (PARI) a(n) = n + sumdigits(n) + if (n==0, 1, #digits(n)); \\ Michel Marcus, Apr 23 2014 CROSSREFS Cf. A000027, A007953, A055642. Sequence in context: A098729 A160939 A160927 * A038124 A172273 A329835 Adjacent sequences: A240845 A240846 A240847 * A240849 A240850 A240851 KEYWORD nonn,base AUTHOR Carmine Suriano, Apr 13 2014 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.

Last modified February 24 22:04 EST 2024. Contains 370307 sequences. (Running on oeis4.)