OFFSET
1,1
COMMENTS
A006530(m) is the largest prime factor of m.
a(15) > 3*10^11. - Donovan Johnson, Oct 24 2009
a(17) > 7*10^12. - Giovanni Resta, May 04 2017
FORMULA
a(n) = A070089(x)+1, where x is the smallest positive integer such that A070089(x+1)-A070089(x) >= n. - Pontus von Brömssen, Nov 09 2022
EXAMPLE
a(5)=491 because the largest prime factors of 491,492,493,494,495 are 491,41,29,19,11.
MATHEMATICA
Function[s, Prepend[Reverse@ FoldList[If[#2 > #1, #1, #2] &, Reverse@ #], 2] &@ Map[Function[k, First@ SelectFirst[s, And[Sign@ First@ # == 1, Length@ # == k] &]], Range[Max@ Map[Length, s]]]]@ SplitBy[Flatten[ Partition[Array[{#, FactorInteger[#][[-1, 1]]} &, 10^6], 2, 1] /. {{n_, a_}, {_, b_}} /; n > 0 :> -n Sign[Differences@ {a, b}]], Sign] (* Michael De Vlieger, May 04 2017, Version 10.2 *)
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Labos Elemer, Dec 09 2004
EXTENSIONS
Edited by Don Reble, Jun 13 2007
a(14) from Donovan Johnson, Oct 24 2009
a(15)-a(16) from Giovanni Resta, May 04 2017
STATUS
approved