A285639 a(n) = n*A117366(n)/spf(n), where A117366(n) is the smallest prime larger than all prime factors of n, and spf is the smallest prime factor of n (or 1 if n = 1).
2, 3, 5, 6, 7, 15, 11, 12, 15, 35, 13, 30, 17, 77, 35, 24, 19, 45, 23, 70, 77, 143, 29, 60, 35, 221, 45, 154, 31, 105, 37, 48, 143, 323, 77, 90, 41, 437, 221, 140, 43, 231, 47, 286, 105, 667, 53, 120, 77, 175, 323, 442, 59, 135, 143, 308, 437, 899, 61, 210, 67, 1147
Offset: 1
Keywords
Examples
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.
Links
- Ivan Neretin, Table of n, a(n) for n = 1..10000
Programs
-
Mathematica
Table[d = FactorInteger[n]; n*NextPrime[d[[-1, 1]]]/d[[1, 1]], {n, 62}] (* Ivan Neretin, Jan 23 2018 *)
-
PARI
a(n,f=factor(n)[,1])={f||f=[1];n\f[1]*nextprime(f[#f]+1)}
Comments