cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A181761 Start with 18; write down the sum of its digits; add last two terms; repeat.

Original entry on oeis.org

18, 9, 27, 9, 36, 9, 45, 9, 54, 9, 63, 9, 72, 9, 81, 9, 90, 9, 99, 18, 117, 9, 126, 9, 135, 9, 144, 9, 153, 9, 162, 9, 171, 9, 180, 9, 189, 18, 207, 9, 216, 9, 225, 9, 234, 9, 243, 9, 252, 9, 261, 9, 270, 9, 279, 18, 297, 18, 315, 9, 324, 9, 333, 9, 342, 9
Offset: 1

Views

Author

Anton Joha, Nov 14 2010

Keywords

Examples

			a(1)=18; a(2)=1+8=9; a(3)=18+9=27, etc.
		

Crossrefs

Cf. A129888.

Programs

  • Mathematica
    NestList[{Total[#],Total[IntegerDigits[Total[#]]]}&,{18,9},40]// Flatten (* Harvey P. Dale, Nov 10 2016 *)

Formula

a(2n+1) = A016096(n+2). - Michel Marcus, Oct 31 2014