OFFSET
1,1
COMMENTS
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
a(4)=11 because exactly 11 numbers between 2 and 2*prime(4)=2*7=14, namely: 2,3,4,5,6,7,8,9,10,12,14 are divisible by the first four primes 2,3,5,7.
MAPLE
f:= proc(n) local p;
p:= ithprime(n); 2*p - numtheory:-pi(2*p)+n-1
end proc:
map(f, [$1..100]); # Robert Israel, Mar 02 2022
PROG
(PARI) a(n) = {nb = 0; for (i = 2, 2*prime(n), for (ip = 1, n, if ( !(i % prime(ip)), nb++; break; ); ); ); nb; } \\ Michel Marcus, Oct 26 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Lekraj Beedassy, Jun 21 2006
STATUS
approved