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.

A118636 Start with 1 and repeatedly reverse the digits and add 40 to get the next term.

Original entry on oeis.org

1, 41, 54, 85, 98, 129, 961, 209, 942, 289, 1022, 2241, 1462, 2681, 1902, 2131, 1352, 2571, 1792, 3011, 1143, 3451, 1583, 3891, 2023, 3242, 2463, 3682, 2903, 3132, 2353, 3572, 2793, 4012, 2144, 4452, 2584, 4892, 3024, 4243, 3464, 4683, 3904, 4133, 3354
Offset: 1

Views

Author

Luc Stevens (lms022(AT)yahoo.com), May 09 2006

Keywords

Crossrefs

Programs

  • Mathematica
    NestList[FromDigits[Reverse[IntegerDigits[#]]]+40&,1,50]  (* Harvey P. Dale, Dec 26 2010 *)
    NestList[IntegerReverse[#]+40&,1,50] (* Harvey P. Dale, Aug 05 2025 *)

Formula

Never reaches a cycle (see A117816).