OFFSET
1,3
COMMENTS
a(n) = 1 if and only if n is even or if n = 1.
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..10000
EXAMPLE
5 is the smallest prime dividing 35. So a(35) is the largest prime < 5, which is 3.
MATHEMATICA
a[n_] := If[EvenQ[n], 1, Prime[PrimePi[FactorInteger[n][[1]][[1]]] - 1]]; Table[a[n], {n, 2, 80}] (* Stefan Steinerberger, Mar 14 2006 *)
Table[NextPrime[FactorInteger[n][[1, 1]], -1] /. -2 -> 1, {n, 96}] (* Michael De Vlieger, Sep 16 2017 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Mar 10 2006
EXTENSIONS
More terms from Stefan Steinerberger, Mar 14 2006
More terms from Franklin T. Adams-Watters, Aug 29 2006
STATUS
approved