OFFSET
1,3
COMMENTS
EXAMPLE
5 is the largest prime dividing 10. So a(10) is the largest prime < 5, which is 3.
MATHEMATICA
PrevPrime[n_] := Block[{k = n - 1}, While[ ! PrimeQ[k], k-- ]; k]; f[n_] := Block[{k = PrevPrime@ FactorInteger[Max[2, n]][[ -1, 1]]}, If[k > 1, k, 1]]; Array[f, 87] (* Robert G. Wilson v *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Mar 10 2006
EXTENSIONS
More terms from Robert G. Wilson v, May 01 2006
STATUS
approved