login
A107347
Number of even semiprimes strictly between prime(n) and 2*prime(n).
3
0, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 6, 6, 7, 7, 8, 9, 9, 9, 9, 9, 10, 11, 11, 12, 13, 12, 13, 13, 14, 13, 14, 15, 15, 15, 16, 16, 17, 18, 19, 19, 20, 19, 18, 18, 19, 20, 21, 22, 23, 23, 23, 24, 25, 25, 25, 26, 27, 26, 27, 28, 28, 28, 28, 28, 29, 30, 30, 30, 31, 32, 32, 32, 32
OFFSET
1,6
LINKS
FORMULA
a(n) = A294602(prime(n)). - R. J. Mathar, Dec 17 2017
a(n) = n-1-pi(prime(n)/2). - N. J. A. Sloane, Nov 04 2020
MAPLE
A107347 := n -> n-1-pi(ithprime(n)/2);
[seq(A107347(n), n=1..100)]; # N. J. A. Sloane, Nov 04 2020
MATHEMATICA
fQ[n_] := Plus @@ Last /@ FactorInteger[n] == 2; f[n_] := Count[fQ /@ Range[Prime[n] + 1, Prime[n + 1] - 1], True]; Table[ f[n], {n, 78}] (* Robert G. Wilson v, May 28 2005 *)
CROSSREFS
Sequence in context: A057360 A057364 A060144 * A320063 A189717 A219519
KEYWORD
nonn,easy
AUTHOR
Giovanni Teofilatto, May 23 2005
EXTENSIONS
Corrected and extended by Robert G. Wilson v, May 28 2005
STATUS
approved