OFFSET
1,2
COMMENTS
The n-th term is the number of primes in the half-open interval [3^(n-1), 3^n) where n > 0.
FORMULA
EXAMPLE
a(1) = |{2}| = 1.
a(2) = |{3, 5, 7}| = 3.
a(3) = |{11, 13, 17, 19, 23}| = 5.
MATHEMATICA
Differences[PrimePi[3^Range[0, 33] - 1]] (* Amiram Eldar, May 09 2026 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Shahin Saadati, May 08 2026
EXTENSIONS
More terms from Alois P. Heinz, May 08 2026
STATUS
approved
