OFFSET
1,1
COMMENTS
A006530(k) is the largest prime factor of k.
The sequence contains all odd primes.
LINKS
T. D. Noe, Table of n, a(n) for n = 1..1000
EXAMPLE
26 is here because the largest prime factors of 25, 26, 27 are 5, 13, 3.
MATHEMATICA
<<NumberTheory`NumberTheoryFunctions` mxp[x_] :=Max[PrimeFactorList[x]]; ta={{0}}; Do[s1=mxp[n-1]; s=mxp[n]; s2=mxp[n+1]; If[Greater[s, s1]&&Greater[s, s2], Print[{n, {s1, s, s2}}]; ta=Append[ta, n]], {n, 1, 1000}]ta=Delete[ta, 1]
With[{lpfs=Table[FactorInteger[n][[-1, 1]], {n, 200}]}, Flatten[Position[ Partition[ lpfs, 3, 1], _?(First[#]<#[[2]]>Last[#]&), {1}, Heads-> False]]+ 1] (* Harvey P. Dale, Feb 22 2014 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Dec 14 2004
EXTENSIONS
Edited by Don Reble, Jun 13 2007
STATUS
approved