OFFSET
1,1
COMMENTS
Each term in this sequence has a single presentation in the form k*p^k.
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
Peter Lindqvist and Jaak Peetre, On the remainder in a series of Mertens, Expositiones Mathematicae, Vol. 15 (1997), pp. 467-478. See eq. (3).
Eric Weisstein's World of Mathematics, Mertens Constant. See eq. (5).
FORMULA
EXAMPLE
8 is a term since 8 = 2*2^2.
18 is a term since 18 = 2*3^2.
24 is a term since 24 = 3*2^3.
MATHEMATICA
addP[p_, n_] := Module[{k = 2, s = {}, m}, While[(m = k*p^k) <= n, k++; AppendTo[s, m]]; s]; seq[max_] := Module[{m = Floor[Sqrt[max/2]], s = {}, ps}, ps = Select[Range[m], PrimeQ]; Do[s = Join[s, addP[p, max]], {p, ps}]; Sort[s]]; seq[2*10^4]
CROSSREFS
KEYWORD
nonn
AUTHOR
Amiram Eldar, Apr 16 2022
STATUS
approved