OFFSET
1,3
LINKS
Matthew House, Table of n, a(n) for n = 1..10000
PROG
(Python)
from math import lcm
from sympy import sieve
def a(n):
pn = sieve[n]
return lcm(*[q+1 for q in sieve.primerange(2, pn) if (pn+1)%(q+1)==0])
print([a(n) for n in range(1, 100)]) # Michael S. Branicky, Aug 13 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, May 18 2003
EXTENSIONS
Definition and terms corrected by Matthew House, Aug 13 2024
STATUS
approved