proposed
approved
proposed
approved
editing
proposed
a(n) = A000040(n) - A112925(n). - Michel Marcus, Apr 10 2014
proposed
editing
editing
proposed
editing
proposed
Chris Boyd, <a href="/A240473/b240473.txt">Table of n, a(n) for n = 1..10000</a>
allocated for Chris BoydDistance from prime(n) to the closest smaller squarefree number.
1, 1, 2, 1, 1, 2, 2, 2, 1, 3, 1, 2, 2, 1, 1, 2, 1, 2, 1, 1, 2, 1, 1, 2, 2, 4, 1, 1, 2, 2, 4, 1, 3, 1, 3, 2, 2, 2, 1, 3, 1, 2, 1, 2, 2, 2, 1, 1, 1, 2, 2, 1, 2, 2, 2, 1, 2, 2, 3, 3, 1, 2, 2, 1, 2, 3, 1, 2, 1, 2, 4, 1, 1, 2, 2, 1, 3, 2, 2, 2, 1, 2, 1, 2, 1, 1
1,3
a(10) = 3 because 3 is the gap between prime(10) = 29 and the closest smaller squarefree number 26.
(PARI) forprime(p=1, 450, forstep(j=p-1, 1, -1, if(issquarefree(j), print1(p-j", "); break)))
allocated
nonn
Chris Boyd, Apr 06 2014
approved
editing
allocating
allocated
allocated for Chris Boyd
allocating
approved