OFFSET
2,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 2..1000
EXAMPLE
18 is divisible by 2 and 3. q(2) = 3, and q(3) = 5. So a(18) is the smallest integer > 18 that is divisible by both 3 and 5. Therefore a(18) = 30.
MATHEMATICA
spf[n_]:=Module[{prs=NextPrime/@FactorInteger[n][[All, 1]], p, k=1}, p= LCM@@ prs; While[ k*p<n, k++]; k*p]; Array[spf, 70, 2]
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Aug 01 2009
EXTENSIONS
Correct second term and extend sequence Sean A. Irvine, Sep 06 2009
STATUS
approved