OFFSET
0,1
LINKS
Robert Israel, Table of n, a(n) for n = 0..78
EXAMPLE
a(7) = 211 because each of the first 7 primes divides at least one of the composites 212 to 222 (2|212, 3|213, 5|215, 7|217, 11|220, 13|221, 17|221), but the 8th prime 19 does not.
MAPLE
N:= 50: # for a(0) to a(N)
count:= 1:
P:= [seq(ithprime(i), i=1..N)]:
V:= Array(0..N): V[0]:= 2: q:= 3:
while count < N+1 do
p:= q; q:= nextprime(p);
for r from 1 to N do x:= -p mod P[r]; if subs(0=P[r], x) >= q-p then break fi od;
r:= r-1;
if r <= N and V[r] = 0 then V[r]:= p; count:= count+1; fi;
od:
convert(V, list);
CROSSREFS
KEYWORD
nonn
AUTHOR
J. M. Bergot and Robert Israel, Feb 18 2021
STATUS
approved