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.

A033648 Trajectory of 3 under map x->x + (x-with-digits-reversed).

Original entry on oeis.org

3, 6, 12, 33, 66, 132, 363, 726, 1353, 4884, 9768, 18447, 92928, 175857, 934428, 1758867, 9447438, 17794887, 96644658, 182289327, 906271608, 1712444217, 8836886388, 17673772776, 85401510447, 159803020905, 668823329856, 1327746658722, 3606313135953, 7201626272016
Offset: 0

Views

Author

Keywords

Comments

Normally one stops as soon as a palindrome is reached.
A Reverse and Add! sequence.

Crossrefs

Programs

  • Haskell
    a033648 n = a033648_list !! n
    a033648_list = iterate a056964 3 -- Reinhard Zumkeller, Sep 22 2011
  • Maple
    a:= proc(n) option remember; `if`(n=0, 3, (h-> h+ (s->
          parse(cat(s[-i]$i=1..length(s))))(""||h))(a(n-1)))
        end:
    seq(a(n), n=0..40);  # Alois P. Heinz, Jun 18 2014
  • Mathematica
    NestList[ # + FromDigits@Reverse@IntegerDigits@# &, 3, 29] (* Robert G. Wilson v, Dec 16 2005 *)