# Greetings from The On-Line Encyclopedia of Integer Sequences! http://oeis.org/
Search: id:a015976
Showing 1-1 of 1
%I A015976 #23 Jul 04 2022 11:30:16
%S A015976 1,2,3,4,10,11,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,29,30,31,
%T A015976 32,33,34,35,36,38,40,41,42,43,44,45,47,50,51,52,53,54,56,60,61,62,63,
%U A015976 65,70,71,72,74,80,81,83,90,92,100,101,102,103,104,105,106
%N A015976 One iteration of Reverse and Add is needed to reach a palindrome.
%C A015976 The number of iterations starts at 1, so palindromes (cf. A002113) are not excluded. The corresponding sequence excluding palindromes is A065206.
%H A015976 Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
%H A015976 Index entries for sequences related to Reverse and Add!
%t A015976 rev[n_] := FromDigits[Reverse[IntegerDigits[n]]]; Select[Range[106], rev[x = # + rev[#]] == x &] (* _Jayanta Basu_, Jul 24 2013 *)
%t A015976 Select[Range[120],PalindromeQ[#+IntegerReverse[#]]&] (* _Harvey P. Dale_, Jul 04 2022 *)
%o A015976 (Haskell)
%o A015976 a015976 n = a015976_list !! (n-1)
%o A015976 a015976_list = filter ((== 1) . a136522 . a056964) [1..]
%o A015976 -- _Reinhard Zumkeller_, Oct 14 2011
%Y A015976 Cf. A002113, A065206.
%K A015976 nonn,base,look
%O A015976 1,2
%A A015976 _Robert G. Wilson v_
%E A015976 Offset corrected by _Reinhard Zumkeller_, Oct 14 2011
# Content is available under The OEIS End-User License Agreement: http://oeis.org/LICENSE