OFFSET
0,1
LINKS
Robert Israel, Table of n, a(n) for n = 0..86
EXAMPLE
a(6) = 61 because each of the first 6 primes 2,3,5,7,11,13 divides at least one of the composites 62 to 66: 2|62, 3|63, 5|65, 7|63, 11|66 and 13|65.
MAPLE
N:= 50: # for a(0) to a(N)
P:= [seq(ithprime(i), i=1..N)]:
V:= Array(0..N): V[0]:= 2: q:= 3: m:= 0:
while m < N do
p:= q; q:= nextprime(p);
E:= mul(i, i=p+1..q-1);
for r from 1 to N do if E mod P[r] <> 0 then break fi od;
r:= r-1;
if r > m then
for s from m+1 to r do V[s]:= p od;
m:= r;
fi;
od:
convert(V, list);
CROSSREFS
KEYWORD
nonn
AUTHOR
J. M. Bergot and Robert Israel, Feb 16 2021
STATUS
approved