OFFSET
1,1
COMMENTS
Differences a(n+1)-a(n) are 0, 1 or -1.
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..10000
M. Das, G. Paul, Generalization of Bertrand's Postulate and Upper Bounds on the Number of Primes in Certain Intervals, arXiv:1710.09891 [math.NT], 2017.
EXAMPLE
a(4) = 3 because between 4 and 12 there are 3 primes: 5, 7, 11; a(7) = 4 because between 7 and 21 there are 4 primes: 11, 13, 17, 19.
MAPLE
MATHEMATICA
s=3; a[n_] := PrimePi[s*n]-PrimePi[n]
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Oct 02 2002
STATUS
approved