OFFSET
1,5
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..31
PROG
(Python 3.8+)
from itertools import combinations
from math import prod
from sympy import sieve, prime, primorial
from sympy.ntheory.modular import crt
def A215021(n): return 1 if n == 1 else (s := int(min(min(crt((m, (k:=primorial(n))//m), (0, -1))[0], crt((k//m, m), (0, -1))[0]) for m in (prod(d) for l in range(1, n//2+1) for d in combinations(sieve.primerange(prime(n)+1), l)))))*(s+1)//k # Chai Wah Wu, May 31 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Aug 02 2012, following a comment in A118478 made by Robert G. Wilson v on May 13 2006
EXTENSIONS
a(18)-a(25) from J. Stauduhar, Aug 17 2012
STATUS
approved