A015986 Seven iterations of Reverse and Add are needed to reach a palindrome.
188, 190, 197, 287, 296, 386, 395, 485, 494, 584, 593, 683, 692, 782, 791, 881, 890, 980, 1394, 1484, 1574, 1664, 1754, 1844, 1898, 1934, 1988, 1992, 1994, 1999, 2393, 2483, 2573, 2663, 2753, 2843, 2897, 2933, 2987, 2991, 2993, 2998
Offset: 0
Links
Programs
-
Mathematica
sirapQ[n_]:=Boole[PalindromeQ/@Rest[NestList[#+IntegerReverse[#]&,n,7]]]=={0,0,0,0,0,0,1}; Select[Range[3000],sirapQ] (* Harvey P. Dale, May 11 2025 *)
Comments