OFFSET
1,1
COMMENTS
The number of steps starts at 0, so palindromes (cf. A002113) are excluded.
Numbers k such that A033665(k) = 2. - Andrew Howroyd, Dec 06 2024
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..10000 (terms 1..1000 from Harry J. Smith)
MATHEMATICA
trasQ[n_]:=Length[NestWhileList[IntegerReverse[#]+#&, n, !PalindromeQ[ #]&, 1, 5]] ==3; Select[Range[300], trasQ] (* Harvey P. Dale, Apr 13 2022 *)
PROG
(ARIBAS) revadd_steps(2, 58); (* For the definition of function revadd_steps see A065206. *)
(Python)
def ra(n): s = str(n); return int(s) + int(s[::-1])
def ispal(n): s = str(n); return s == s[::-1]
def aupto(limit):
alst = []
for k in range(limit+1):
if ispal(k): continue
k2 = ra(k)
if ispal(k2): continue
if ispal(ra(k2)): alst.append(k)
return alst
print(aupto(269)) # Michael S. Branicky, May 06 2021
(PARI) isok(n, s=2)={for(k=0, s, my(r=fromdigits(Vecrev(digits(n)))); if(r==n, return(k==s)); n += r); 0} \\ Andrew Howroyd, Dec 06 2024
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Klaus Brockhaus, Oct 21 2001
EXTENSIONS
Offset changed from 0 to 1 by Harry J. Smith, Oct 14 2009
STATUS
approved
