OFFSET
0,1
LINKS
David A. Corneth, Table of n, a(n) for n = 0..253 (first 144 terms from Robert Israel)
David A. Corneth, PARI program
EXAMPLE
a(3) = 31 because there are 3 squarefree numbers between 31 and the next prime 37, namely 33, 34 and 35, and 31 is the least prime that works.
MAPLE
V:= Array(0..100): count:= 0: q:= 2:
for k from 1 while count < 101 do
p:= q; q:= nextprime(q);
v:= nops(select(numtheory:-issqrfree, [$p+1 .. q-1]));
if v <= 100 and V[v] = 0 then
V[v]:= p; count:= count+1;
fi
od:
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert Israel, Nov 29 2024
STATUS
approved