login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A074990 Number of primes in the interval (n,3n]. 3
2, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 6, 6, 7, 8, 9, 8, 9, 8, 9, 10, 10, 10, 11, 12, 12, 13, 14, 13, 14, 13, 13, 14, 15, 16, 17, 17, 18, 18, 18, 17, 17, 17, 18, 18, 19, 19, 19, 19, 20, 21, 21, 21, 21, 22, 23, 23, 24, 23, 24, 24, 24, 24, 25, 26, 27, 27, 27, 27, 27, 27, 27, 26, 26, 27, 28 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Differences a(n+1)-a(n) are 0, 1 or -1.
LINKS
FORMULA
a(n) = A000720(3n) - A000720(n).
a(n) = Sum_{j=n+1..3*n} A010051(j).
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
A074990 := proc(n)
numtheory[pi](3*n)-numtheory[pi](n) ;
end proc: # R. J. Mathar, Nov 03 2017
MATHEMATICA
s=3; a[n_] := PrimePi[s*n]-PrimePi[n]
CROSSREFS
Sequence in context: A020911 A336861 A029125 * A102605 A112995 A368887
KEYWORD
nonn
AUTHOR
Zak Seidov, Oct 02 2002
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 7 03:41 EDT 2024. Contains 372300 sequences. (Running on oeis4.)