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.

A209686 For each n, define a sequence of numbers by S(0)=n, S(i) = sum of last three digits of the concatenation S(0)S(1)S(2)...S(i-1); a(n) = smallest m such that S(m) = 11, or -1 if 11 is never reached.

Original entry on oeis.org

-1, 6, 8, 14, 7, 6, 13, 16, 6, 7, 5, 0, 3, 8, 6, 13, 16, 6, 7, 7, 15, 11, 7, 6, 13, 16, 6, 7, 9, 1, 9, 15, 6, 13, 16, 6, 7, 12, 1, 10, 4, 6, 13, 16, 6, 7, 9, 1, 2, 4, 6, 13, 16, 6, 7, 5, 1, 20, 13, -1, 13, 16, 6, 7, 4, 1, 12, 2, 5, 3, 16, 6, 7, 10, 1, 3, 11, 15, 6, 13, 6, 7, 19, 1, 14, 6, 2, 7, 5, 9, 7, 9, 1, 12, 4, 5
Offset: 0

Views

Author

N. J. A. Sloane, Mar 11 2012

Keywords

Examples

			3->3->6->12->9->12->12->5->8->15->14->10->5->6->11, so a(3)=14.
59->14->14->9->14->14->9->... never reaches 11, so a(59)=-1.
		

References

  • Eric Angelini, Posting to Math Fun Mailing List, Mar 11 2012.

Crossrefs

Cf. A209674.