OFFSET
1,1
COMMENTS
LINKS
Chris Boyd, Table of n, a(n) for n = 1..10000
EXAMPLE
29 is a term because it is not midway between the closest flanking squarefree numbers 26 and 30.
On the other hand, 19 is not a term because it is midway between the closest flanking squarefree numbers 17 and 21.
PROG
(PARI) forprime(p=1, 353, forstep(j=p-1, 1, -1, if(issquarefree(j), L=j; break)); for(j=p+1, 2*p, if(issquarefree(j), G=j; break)); if(G-p!=p-L, print1(p", ")))
CROSSREFS
KEYWORD
nonn
AUTHOR
Chris Boyd, Apr 06 2014
STATUS
approved