login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A068636 a(n) = Min(n, R(n)), where R(n) (A004086) = digit reversal of n. 3

%I #13 Nov 27 2015 12:23:51

%S 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 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 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 a(n) = Min(n, R(n)), where R(n) (A004086) = digit reversal of n.

%C a(n) = A004185(n) for n <= 100. - _Reinhard Zumkeller_, Apr 03 2015

%H Alois P. Heinz, <a href="/A068636/b068636.txt">Table of n, a(n) for n = 1..10000</a>

%e a(12) = min(12,21) = 12. a(34632) = min(34632,23643) = 23643.

%p a:= n-> min(n,(s-> parse(cat(seq(s[-i], i=1..length(s)))))(""||n)):

%p seq(a(n), n=1..100); # _Alois P. Heinz_, Aug 22 2015

%t Table[Min[n,IntegerReverse[n]],{n,80}] (* The program uses the IntegerReverse function from Mathematica version 10 *) (* _Harvey P. Dale_, Nov 27 2015 *)

%o (Haskell)

%o a068636 n = min n $ a004086 n -- _Reinhard Zumkeller_, Apr 03 2015

%Y Cf. A068637, A004086, A004185.

%K base,easy,nonn,look,hear

%O 1,2

%A _Amarnath Murthy_, Feb 27 2002

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 14:32 EDT 2024. Contains 371960 sequences. (Running on oeis4.)