OFFSET
1,2
COMMENTS
a(n) = A004185(n) for n <= 100. - Reinhard Zumkeller, Apr 03 2015
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..10000
EXAMPLE
a(12) = min(12,21) = 12. a(34632) = min(34632,23643) = 23643.
MAPLE
a:= n-> min(n, (s-> parse(cat(seq(s[-i], i=1..length(s)))))(""||n)):
seq(a(n), n=1..100); # Alois P. Heinz, Aug 22 2015
MATHEMATICA
Table[Min[n, IntegerReverse[n]], {n, 80}] (* The program uses the IntegerReverse function from Mathematica version 10 *) (* Harvey P. Dale, Nov 27 2015 *)
PROG
(Haskell)
a068636 n = min n $ a004086 n -- Reinhard Zumkeller, Apr 03 2015
CROSSREFS
AUTHOR
Amarnath Murthy, Feb 27 2002
STATUS
approved