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.

Showing 1-2 of 2 results.

A063053 a(n) = number of 'Reverse and Add!' operations that have to be applied to the n-th term of A063052 in order to obtain a term in the trajectory of 879.

Original entry on oeis.org

1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 1, 1, 1, 1, 0, 1, 1, 1, 2, 2, 2, 4, 5, 4, 3, 4, 5, 3, 4, 3, 4, 3, 4, 3, 1, 3, 0, 3, 1, 3, 1, 4, 5, 4, 5, 3, 4, 5, 3, 4, 3, 4, 3, 4, 3
Offset: 0

Views

Author

Klaus Brockhaus, Jul 07 2001

Keywords

Examples

			1497 is a term of A063052. One 'Reverse and Add!' operation applied to 1497 leads to a term (9438) in the trajectory of 879, so the corresponding term of the present sequence is 1.
		

Crossrefs

A063051 'Reverse and Add!' trajectory of 879.

Original entry on oeis.org

879, 1857, 9438, 17787, 96558, 182127, 903408, 1707717, 8884788, 17759676, 85455447, 159910905, 668930856, 1326970722, 3597766953, 7194444906, 13288889823, 46187778054, 91275556218, 172541113437, 906852258708
Offset: 0

Views

Author

Klaus Brockhaus, Jul 07 2001

Keywords

Examples

			a(1) = 879 + 978 = 1857.
		

Crossrefs

Programs

  • ARIBAS
    m := 879; stop := 25; c := 0; rev := int_reverse(m); while m <> rev and c < stop do inc(c); write(m," "); m := m + rev; rev := int_reverse(m); end;
    
  • Haskell
    a033651 n = a033651_list !! n
    a033651_list = iterate a056964 9 -- Reinhard Zumkeller, Sep 22 2011
  • Mathematica
    NestList[# + FromDigits[Reverse[IntegerDigits[#]]]&, 879, 40] (* Vincenzo Librandi, Sep 23 2013 *)
  • PARI
    Rev(x)= { local(d); r=0; while (x>0, d=x-10*(x\10); x\=10; r=r*10 + d); return(r) }
    { for (n=0, 200, if (n, a+=Rev(a), a=879); write("b063051.txt", n, " ", a) ) } \\ Harry J. Smith, Aug 16 2009
    
Showing 1-2 of 2 results.