OFFSET
1,1
COMMENTS
Inclusive means 1 is a prime-power but not a non-prime-power.
Non-prime-powers (inclusive) are listed by A024619.
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
The 5th non-prime-power (inclusive) is 15, and the 6th is 18, so a(5) = 3.
MAPLE
NPP:= select(t -> NumberTheory:-Omega(t, distinct)>1, [$2..150]):
NPP[2..-1]-NPP[1..-2]; # Robert Israel, Feb 27 2026
MATHEMATICA
Differences[Select[Range[2, 100], !PrimePowerQ[#]&]]
PROG
(Python)
from itertools import count
from sympy import primepi, integer_nthroot, primefactors
def A375735(n):
def f(x): return int(n+1+sum(primepi(integer_nthroot(x, k)[0]) for k in range(1, x.bit_length())))
m, k = n, f(n)
while m != k: m, k = k, f(k)
return next(i for i in count(m+1) if len(primefactors(i))>1)-m # Chai Wah Wu, Sep 10 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Sep 04 2024
STATUS
approved
