OFFSET
1,1
COMMENTS
a(n) = A142972(n) + 1.
EXAMPLE
The 15th prime is 47 and the 16th prime is 53. So we will consider the integers 47,48,49,50,51,52,53. Now, 1 divides each of these 6 integers. 2 divides 48, 50 and 52. 3 divides 48 and 51. 4 divides 48 and 52. 5 divides 50. 6 divides 48. 7 divides 49. 8 divides 48. But 9 does not divide any integer that is between 47 and 53. So a(15)=9, since 9 is the smallest positive integer that does not divide any integer between 47 and 53.
PROG
Contribution from Franklin T. Adams-Watters, Apr 09 2009: (Start)
(PARI) dividesany(n, m, d)=for(k=n, m, if(k%d==0, return(1))); 0
firstnondiv(n, m)=for(d=2, m+1, if(!dividesany(n, m, d), return(d)))
vector(100, k, firstnondiv(prime(k), prime(k+1))) (End)
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Jul 14 2008
EXTENSIONS
More terms from Franklin T. Adams-Watters, Apr 09 2009
STATUS
approved