OFFSET
1,2
COMMENTS
a(61) > 10^11. - Robert Price, Mar 22 2015
LINKS
Daniel Suteu, Table of n, a(n) for n = 1..333
FORMULA
MATHEMATICA
b = {}; a = {}; Do[w = RealDigits[n]; w = First[w]; Do[AppendTo[a, w[[k]]], {k, 1, Length[w]}]; p = FromDigits[Reverse[a]]; AppendTo[b, First[First[FactorInteger[p]]]], {n, 1, 31}]; b (* Artur Jasinski, Apr 04 2008 *)
lst = {}; Table[First[First[FactorInteger[FromDigits[Reverse[lst = Join[lst, IntegerDigits[n]]]]]]], {n, 1, 60}] (* Robert Price, Mar 22 2015 *)
PROG
(PARI)
f(n) = my(D = Vec(concat(apply(s->Str(s), [1..n])))); eval(concat(vector(#D, k, D[#D-k+1]))); \\ A138793
a(n) = my(k=f(n)); forprime(p=2, 10^6, if(k%p == 0, return(p))); if(n == 1, 1, vecmin(factor(k)[, 1])); \\ Daniel Suteu, May 27 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Artur Jasinski, Apr 04 2008
EXTENSIONS
a(32)-a(60) from Robert Price, Mar 22 2015
STATUS
approved