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.

A118879 Let T(S,Q) be the sequence obtaining by starting with S and repeatedly reversing the digits and adding Q to get the next term. This is T(1016,5), the first S for which T(S,5) reaches a cycle of length 36.

Original entry on oeis.org

1016, 6106, 6021, 1211, 1126, 6216, 6131, 1321, 1236, 6326, 6241, 1431, 1346, 6436, 6351, 1541, 1456, 6546, 6461, 1651, 1566, 6656, 6571, 1761, 1676, 6766, 6681, 1871, 1786, 6876, 6791, 1981, 1896, 6986, 6901, 1101, 1016, 6106, 6021
Offset: 0

Views

Author

N. J. A. Sloane, May 26 2006

Keywords

Comments

The cycle is simply the first 36 terms, which then repeat.
For S < 1016, T(S,5) reaches a cycle of length 207 (cf. A117800).

Crossrefs

Programs

  • Mathematica
    NestList[IntegerReverse[#]+5&,1016,40] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Mar 05 2020 *)