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.
The OEIS is supported by the many generous donors to the OEIS Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A160943 a(n) = n + digital sum(n-1) + digital sum(n+1). 1
 3, 6, 9, 12, 15, 18, 21, 24, 18, 21, 15, 18, 21, 24, 27, 30, 33, 36, 30, 33, 27, 30, 33, 36, 39, 42, 45, 48, 42, 45, 39, 42, 45, 48, 51, 54, 57, 60, 54, 57, 51, 54, 57, 60, 63, 66, 69, 72, 66, 69, 63, 66, 69, 72, 75, 78, 81, 84, 78, 81, 75, 78, 81, 84, 87, 90, 93, 96, 90, 93 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,1 LINKS Table of n, a(n) for n=1..70. FORMULA a(n) = n + A007953(n-1) + A007953(n+1) EXAMPLE a(8) = 8 +ds(7) +ds(9) = 7+8+9 = 24; a(15) = 15+ds(14)+ds(16) = 15+5+7 = 27; a(26) = 26+ds(25)+ds(27) = 26+7+9 = 42. MATHEMATICA Table[n+Total[IntegerDigits[n-1]]+Total[IntegerDigits[n+1]], {n, 70}] (* Harvey P. Dale, Jun 24 2011 *) PROG (Python) def A160943(n): return n+sum(int(d) for d in str(n-1))+sum(int(d) for d in str(n+1)) # Chai Wah Wu, Mar 11 2021 (PARI) a(n) = n + sumdigits(n-1) + sumdigits(n+1); \\ Michel Marcus, Mar 11 2021 CROSSREFS Cf. A007953, A062028, A160939. Sequence in context: A119888 A305495 A003252 * A160930 A212662 A342831 Adjacent sequences: A160940 A160941 A160942 * A160944 A160945 A160946 KEYWORD nonn,base AUTHOR Claudio Meller, May 30 2009 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 June 18 17:45 EDT 2024. Contains 373483 sequences. (Running on oeis4.)