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.
%I A068636 #16 Jun 26 2025 16:27:43 %S A068636 1,2,3,4,5,6,7,8,9,1,11,12,13,14,15,16,17,18,19,2,12,22,23,24,25,26, %T A068636 27,28,29,3,13,23,33,34,35,36,37,38,39,4,14,24,34,44,45,46,47,48,49,5, %U A068636 15,25,35,45,55,56,57,58,59,6,16,26,36,46,56,66,67,68,69,7,17,27,37,47,57 %N A068636 a(n) = Min(n, R(n)), where R(n) (A004086) = digit reversal of n. %C A068636 a(n) = A004185(n) for n <= 100. - _Reinhard Zumkeller_, Apr 03 2015 %H A068636 Alois P. Heinz, <a href="/A068636/b068636.txt">Table of n, a(n) for n = 1..10000</a> %e A068636 a(12) = min(12,21) = 12. a(34632) = min(34632,23643) = 23643. %p A068636 a:= n-> min(n,(s-> parse(cat(seq(s[-i], i=1..length(s)))))(""||n)): %p A068636 seq(a(n), n=1..100); # _Alois P. Heinz_, Aug 22 2015 %t A068636 Table[Min[n,IntegerReverse[n]],{n,80}] (* The program uses the IntegerReverse function from Mathematica version 10 *) (* _Harvey P. Dale_, Nov 27 2015 *) %o A068636 (Haskell) %o A068636 a068636 n = min n $ a004086 n -- _Reinhard Zumkeller_, Apr 03 2015 %o A068636 (Python) %o A068636 def A068636(n): return min(n,int(str(n)[::-1])) # _Chai Wah Wu_, Jun 26 2025 %Y A068636 Cf. A068637, A004086, A004185. %K A068636 base,easy,nonn,look,hear %O A068636 1,2 %A A068636 _Amarnath Murthy_, Feb 27 2002