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.

A049341 a(n+1) = sum of digits of a(n) + a(n-1).

Original entry on oeis.org

3, 6, 9, 6, 6, 3, 9, 3, 3, 6, 9, 6, 6, 3, 9, 3, 3, 6, 9, 6, 6, 3, 9, 3, 3, 6, 9, 6, 6, 3, 9, 3, 3, 6, 9, 6, 6, 3, 9, 3, 3, 6, 9, 6, 6, 3, 9, 3, 3, 6, 9, 6, 6, 3, 9, 3, 3, 6, 9, 6, 6, 3, 9, 3, 3, 6, 9, 6, 6, 3, 9, 3, 3, 6, 9, 6, 6, 3, 9, 3, 3, 6, 9, 6, 6, 3, 9, 3, 3, 6, 9, 6, 6, 3, 9, 3, 3, 6, 9, 6, 6, 3, 9, 3, 3, 6, 9, 6, 6, 3, 9, 3
Offset: 0

Views

Author

Keywords

Comments

a(n+1) = A007953(a(n) + a(n-1)) for n > 0.

Examples

			After 6,9 we get 6+9 = 15 -> 1+5 = 6.
		

Crossrefs

Programs

  • Haskell
    a049341 n =  a030132_list !! n
    a049341_list =
       3 : 6 : map a007953 (zipWith (+) a049341_list $ tail a049341_list)
    -- Reinhard Zumkeller, Aug 20 2011
  • Mathematica
    LinearRecurrence[{0, 0, 0, 0, 0, 0, 0, 1},{3, 6, 9, 6, 6, 3, 9, 3},112] (* Ray Chandler, Aug 27 2015 *)

Formula

Period 8.

Extensions

Definition improved by Reinhard Zumkeller, Aug 20 2011