OFFSET
1,1
COMMENTS
LINKS
Ivan Neretin, Table of n, a(n) for n = 1..10000
EXAMPLE
a(1) = nextprime(1) = 2.
a(2) = 2 / 2 * nextprime(2) = 3.
a(3) = 3 / 3 * nextprime(3) = 5, and in the same way, a(prime(k))=prime(k+1).
a(4) = 4 / 2 * nextprime(2) = 2*3 = 6.
a(6) = 6 / 2 * nextprime(3) = 3*5 = 15.
MATHEMATICA
Table[d = FactorInteger[n]; n*NextPrime[d[[-1, 1]]]/d[[1, 1]], {n, 62}] (* Ivan Neretin, Jan 23 2018 *)
PROG
(PARI) a(n, f=factor(n)[, 1])={f||f=[1]; n\f[1]*nextprime(f[#f]+1)}
CROSSREFS
KEYWORD
nonn
AUTHOR
M. F. Hasler, Apr 30 2017
STATUS
approved