OFFSET
1,1
COMMENTS
Each interval (a(n-1), a(n)] asymptotically contains one prime power on the average.
LINKS
Daniel Forgues, Table of n, a(n) for n = 1..100000
MATHEMATICA
NestList[# + Round@ Log[#] &, 2, 60] (* Michael De Vlieger, Nov 05 2020 *)
PROG
(Python)
from math import log
print(2)
a_last = n = 2
while n >= 2:
a = a_last + int(log(a_last) + 0.5)
print(a)
a_last = a
n += 1 # Ya-Ping Lu, Oct 24 2020
CROSSREFS
Cf. A158924, "Number of prime powers - 1 in interval (A158923(n-1), A158923(n)] expressing the excess or deficit relative to the asymptotic average of 1."
Cf. A158925, "Accumulated excess or deficit of prime powers in (1, A158924(n)]" (Partial sums of A158924).
Cf. A000961, "Prime powers p^k (p prime, k >= 0)."
Cf. A025528, "Number of prime powers <= n with exponents >0."
KEYWORD
nonn
AUTHOR
Daniel Forgues, Mar 30 2009
STATUS
approved