login
A130192
Smallest k with k*nextPrime(n) > nextPrime(k*n).
1
2, 2, 2, 3, 2, 2, 2, 2, 2, 3, 2, 3, 2, 2, 2, 4, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 3, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 4, 2, 3, 2, 2, 3, 3, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 3, 4, 3, 3, 2, 2, 2, 2, 2, 3, 2, 2, 2, 3, 5, 6, 2, 2, 2, 2, 2, 2, 2, 2, 2, 4, 2, 2, 2, 2, 3, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 4, 3, 3, 2, 2, 2
OFFSET
1,1
MATHEMATICA
a[n_] := For[k = 2, True, k++, If[ k*NextPrime[n] > NextPrime[k*n], Return[k]]]; Table[a[n], {n, 1, 105}] (* Jean-François Alcover, Jul 18 2013 *)
CROSSREFS
Sequence in context: A193990 A089367 A376579 * A175064 A349956 A104564
KEYWORD
nonn
AUTHOR
David W. Wilson, May 15 2007
STATUS
approved