OFFSET
1,4
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
The 18th prime is 61 and the 19th prime is 67. So we will consider the integers 61, 62, 63, 64, 65, 66, 67. No integer >= 7 divides more than one integer in this range, because the range consists only of 7 terms, the two on the end being prime. Checking: 6 divides 66, but does not divide any other integer in this range. 5 divides 65, but does not divide any other integer in this range. 4 divides 64, but nothing else. 3, on the other hand, divides both 63 and 66. So a(18) = 3.
MAPLE
nodvs := proc(n, L) local a, l ; a := 0 ; for l in L do if l mod n = 0 then a := a+1 ; fi: od: RETURN(a) ; end: A140715 := proc(n) local k, a ; k := [seq(i, i=ithprime(n)..ithprime(n+1))] ; for a from op(-1, k) by -1 do if nodvs(a, k) >= 2 then RETURN(a) ; fi; od: end: for n from 1 to 160 do printf("%d, ", A140715(n)) ; od: # R. J. Mathar, Aug 08 2008
MATHEMATICA
lid2[{a_, b_}]:=Module[{r=Range[a, b]}, Select[Table[{n, Count[r/n, _?IntegerQ]}, {n, Length[r], 1, -1}], #[[2]]>1&, 1][[1, 1]]]; lid2/@Partition[Prime[ Range[ 110]], 2, 1] (* Harvey P. Dale, Jun 07 2013 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Jul 11 2008
EXTENSIONS
Extended beyond a(18) by R. J. Mathar, Aug 08 2008
STATUS
approved