OFFSET
0,2
COMMENTS
All terms are squarefree.
FORMULA
a(n) = A160014(2, n).
EXAMPLE
The divisors of 15 are {1, 3, 5, 15}. Adding 2 to the divisors gives {3, 5, 7, 17}, which are all primes. Therefore a(15) = 3*5*7*17 = 1785.
MATHEMATICA
{1}~Join~Array[Times @@ Select[Divisors[#] + 2, PrimeQ] &, 62] (* Michael De Vlieger, Dec 14 2023 *)
PROG
(SageMath)
def a(n): return (mul(s for s in map(lambda i: i + 2, divisors(n))
if is_prime(s)) if n > 0 else 1)
print([a(n) for n in range(63)])
(PARI) a(n) = if (n>0, my(d=divisors(n)); prod(k=1, #d, if (isprime(p=d[k]+2), p, 1)), 1); \\ Michel Marcus, Dec 15 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
Peter Luschny, Dec 13 2023
STATUS
approved