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-3 of 3 results.

A065206 Numbers which need one 'Reverse and Add' step to reach a palindrome.

Original entry on oeis.org

10, 12, 13, 14, 15, 16, 17, 18, 20, 21, 23, 24, 25, 26, 27, 29, 30, 31, 32, 34, 35, 36, 38, 40, 41, 42, 43, 45, 47, 50, 51, 52, 53, 54, 56, 60, 61, 62, 63, 65, 70, 71, 72, 74, 80, 81, 83, 90, 92, 100, 102, 103, 104, 105, 106, 107, 108, 110, 112, 113, 114, 115, 116, 117
Offset: 1

Views

Author

Klaus Brockhaus, Oct 21 2001

Keywords

Comments

The number of steps starts at 0, so palindromes (A002113) are excluded.
Numbers k such that A033665(k) = 1. - Andrew Howroyd, Dec 05 2024

Crossrefs

Programs

  • ARIBAS
    function revadd_steps(k,stop: integer); var c,n,m,steps,rev: integer; begin n := 0; c := 0; while c < stop do m := n; rev := int_reverse(m); steps := 0; while steps < k and m <> rev do m := m + rev; rev := int_reverse(m); inc(steps); end; if steps = k and m = rev then write(n," "); inc(c); end; inc(n); end; end; revadd_steps(1,66).
    
  • Haskell
    a065206 n = a065206_list !! (n-1)
    a065206_list = filter ((== 1) . a136522 . a056964) a029742_list
    -- Reinhard Zumkeller, Oct 14 2011
    
  • Mathematica
    Select[Range[10,120],!PalindromeQ[#]&&PalindromeQ[#+IntegerReverse[#]]&] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Jun 14 2017 *)
  • PARI
    isok(n,s=1)={for(k=0, s, my(r=fromdigits(Vecrev(digits(n)))); if(r==n, return(k==s)); n += r); 0} \\ Andrew Howroyd, Dec 05 2024

Extensions

Offset corrected by Harry J. Smith, Oct 13 2009

A066130 Numbers that in base 2 need nine 'Reverse and Add' steps to reach a palindrome.

Original entry on oeis.org

202, 210, 218, 222, 250, 282, 306, 312, 334, 358, 408, 432, 454, 460, 484, 778, 834, 842, 846, 858, 862, 874, 878, 970, 986, 1002, 1080, 1128, 1182, 1200, 1230, 1248, 1292, 1316, 1412, 1434, 1482, 1692, 1740, 1944, 1992, 2162, 2274, 2582, 2684, 2694
Offset: 1

Views

Author

Klaus Brockhaus, Dec 08 2001

Keywords

Comments

The analog of A065214 in base 2. The number of steps starts at 0, so palindromes (cf. A006995) are excluded.
Numbers k such that A066057(k) = 9. - Andrew Howroyd, Dec 05 2024

Crossrefs

Extensions

Offset changed from 0 to 1 by Harry J. Smith, Feb 01 2010

A015990 Nine iterations of Reverse and Add are needed to reach a palindrome.

Original entry on oeis.org

1397, 1487, 1577, 1667, 1757, 1847, 1937, 2396, 2486, 2576, 2666, 2756, 2846, 2936, 2999, 3395, 3485, 3575, 3665, 3755, 3845, 3935, 3998, 4394, 4484, 4574, 4664, 4754, 4844, 4934, 4997, 5393, 5483, 5573, 5663, 5753, 5843, 5933, 5996, 6392, 6482, 6572, 6662, 6752, 6842, 6932, 6995
Offset: 1

Views

Author

Keywords

Comments

The number of iterations starts at 1, so palindromes (cf. A002113) are not excluded. The corresponding sequence excluding palindromes is A065214.

Crossrefs

Cf. A002113.
Different from A065214.

Programs

  • Mathematica
    ra9Q[n_]:=Length[NestWhileList[#+FromDigits[Reverse[IntegerDigits[ #]]]&,n, IntegerDigits[ #]!= Reverse[IntegerDigits[#]]&,1,10]]==10; Select[ Range[ 7000],ra9Q] (* Harvey P. Dale, Mar 08 2015 *)

Extensions

Corrected and extended by Harvey P. Dale, Mar 08 2015
Missing a(27)=4664 inserted by Sean A. Irvine, Dec 20 2018
Offset set to 1 by Alois P. Heinz, Dec 20 2018
Showing 1-3 of 3 results.